projects
/
EVA-2020-02-2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dropped obsolete .decode()
[EVA-2020-02-2.git]
/
examples
/
luftdaten.py
diff --git
a/examples/luftdaten.py
b/examples/luftdaten.py
index 77a6d820d70e327d7affc3ed5f4a887eab19ba02..358d442f364ab70c26c9f9913f101a2418ed77dd 100755
(executable)
--- a/
examples/luftdaten.py
+++ b/
examples/luftdaten.py
@@
-72,9
+72,8
@@
def read_values():
# Get CPU temperature to use for compensation
def get_cpu_temperature():
# Get CPU temperature to use for compensation
def get_cpu_temperature():
- process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE)
+ process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE
, universal_newlines=True
)
output, _error = process.communicate()
output, _error = process.communicate()
- output = output.decode()
return float(output[output.index('=') + 1:output.rindex("'")])
return float(output[output.index('=') + 1:output.rindex("'")])