summaryrefslogtreecommitdiffstats
path: root/pyhwmon
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2016-06-14 18:18:19 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2016-06-15 09:37:39 -0400
commit7dc8989137c5c36d7c8edd173e02c6b2fa091c99 (patch)
tree571ba3e4b3f1ce4f1cad91d87c53cc50dccc4a65 /pyhwmon
parent531def23e2d8343fa9528e61f91bef230e1a8f6c (diff)
downloadtalos-skeleton-7dc8989137c5c36d7c8edd173e02c6b2fa091c99.tar.gz
talos-skeleton-7dc8989137c5c36d7c8edd173e02c6b2fa091c99.zip
Fix syntax error introduced with 6956bbd
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'pyhwmon')
-rw-r--r--pyhwmon/hwmon.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyhwmon/hwmon.py b/pyhwmon/hwmon.py
index d662213..e7821f4 100644
--- a/pyhwmon/hwmon.py
+++ b/pyhwmon/hwmon.py
@@ -44,11 +44,11 @@ class Hwmons():
def readAttribute(self,filename):
val = "-1"
try:
- with open(filename, 'r') as f:
- for line in f:
- val = line.rstrip('\n')
+ with open(filename, 'r') as f:
+ for line in f:
+ val = line.rstrip('\n')
except (OSError, IOError):
- print "Cannot read attributes:", filename
+ print "Cannot read attributes:", filename
return val
def writeAttribute(self,filename,value):
OpenPOWER on IntegriCloud