Skip to content

Commit 998bb2e

Browse files
committed
Dropped obsolete .decode()
1 parent e5c4d98 commit 998bb2e

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

examples/all-in-one-no-pm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def display_text(variable, data, unit):
8080
def get_cpu_temperature():
8181
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE, universal_newlines=True)
8282
output, _error = process.communicate()
83-
output = output.decode()
8483
return float(output[output.index('=') + 1:output.rindex("'")])
8584

8685

examples/all-in-one.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def display_text(variable, data, unit):
8686
def get_cpu_temperature():
8787
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE, universal_newlines=True)
8888
output, _error = process.communicate()
89-
output = output.decode()
9089
return float(output[output.index('=') + 1:output.rindex("'")])
9190

9291

examples/luftdaten.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def read_values():
7474
def get_cpu_temperature():
7575
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE, universal_newlines=True)
7676
output, _error = process.communicate()
77-
output = output.decode()
7877
return float(output[output.index('=') + 1:output.rindex("'")])
7978

8079

0 commit comments

Comments
 (0)