Dropped obsolete .decode()
authorPhil Howard <phil@gadgetoid.com>
Tue, 20 Aug 2019 15:17:12 +0000 (16:17 +0100)
committerPhil Howard <phil@gadgetoid.com>
Tue, 20 Aug 2019 15:17:12 +0000 (16:17 +0100)
examples/all-in-one-no-pm.py
examples/all-in-one.py
examples/luftdaten.py

index 4d6d4635e196fc05598a4db6eac690b4d6186f4b..ab1a1a76923e15a9940ec2b5aee13ddf6e9064dc 100755 (executable)
@@ -80,7 +80,6 @@ def display_text(variable, data, unit):
 def get_cpu_temperature():
     process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE, universal_newlines=True)
     output, _error = process.communicate()
-    output = output.decode()
     return float(output[output.index('=') + 1:output.rindex("'")])
 
 
index 8e82b6b969510cd7fc55c5b854efab3d31185212..6314137e4dfb4109740ec33f1ba70e1e2bb891d6 100755 (executable)
@@ -86,7 +86,6 @@ def display_text(variable, data, unit):
 def get_cpu_temperature():
     process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE, universal_newlines=True)
     output, _error = process.communicate()
-    output = output.decode()
     return float(output[output.index('=') + 1:output.rindex("'")])
 
 
index 9995914e23d71144c9f1e99ff11c58f7baaf4e69..358d442f364ab70c26c9f9913f101a2418ed77dd 100755 (executable)
@@ -74,7 +74,6 @@ def read_values():
 def get_cpu_temperature():
     process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE, universal_newlines=True)
     output, _error = process.communicate()
-    output = output.decode()
     return float(output[output.index('=') + 1:output.rindex("'")])