]> arthur.barton.de Git - netdata.git/commitdiff
Merge pull request #589 from paulfantom/master
authorCosta Tsaousis <costa@tsaousis.gr>
Tue, 21 Jun 2016 08:36:23 +0000 (11:36 +0300)
committerGitHub <noreply@github.com>
Tue, 21 Jun 2016 08:36:23 +0000 (11:36 +0300)
Add encoding (PEP263)

plugins.d/python.d.plugin
python.d/example.chart.py
python.d/mysql.chart.py
python.d/pip_install.sh
python.d/python_modules/base.py

index e6131a50001a0a2f3e98b8d774c468ee8498d3c2..acae3324bdc8ca7307f1becca72e001927745524 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+# -*- coding: utf-8 -*-
 
 # Description: netdata python modules supervisor
 # Author: Pawel Krupa (paulfantom)
index ec97415c2c13d15edf3a6e50573f1c35f62511bc..4e244300c5fa43304a2178b95c290ed38b1ec9e6 100644 (file)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 # Description: example netdata python.d plugin
 # Author: Pawel Krupa (paulfantom)
 
index e7be32fa7fa7cb192fad31ab48d4531bf74844a5..0557f95b25a39d23fc6e1b21d361f613ace3cb25 100644 (file)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 # Description: MySQL netdata python.d plugin
 # Author: Pawel Krupa (paulfantom)
 
index 2607861f16211d221c862ec1951bfbb6c3e1f64f..84ebb1d5c002efe823ac275642475e2eb4fffcb6 100644 (file)
@@ -2,6 +2,6 @@
 
 PIP=`which pip`
 
-$PIP install --target="python_modules" yaml
+${PIP} install --target="python_modules" yaml
 
-$PIP install --target="python_modules" MySQL-python || echo "You need to install libmysqlclient-dev and python-dev"
+${PIP} install --target="python_modules" MySQL-python || echo "You need to install libmysqlclient-dev and python-dev"
index a154d53381e54226b9cad75067a3db9fc639a1b0..573700061e0a863acdb8ac1cd306927dabcacef8 100644 (file)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 # Description: base for netdata python.d plugins
 # Author: Pawel Krupa (paulfantom)