[PATCH skeleton] Fix syntax error introduced with 6956bbd
OpenBMC Patches
openbmc-patches at stwcx.xyz
Wed Jun 15 23:40:55 AEST 2016
From: Brad Bishop <bradleyb at fuzziesquirrel.com>
Signed-off-by: Brad Bishop <bradleyb at fuzziesquirrel.com>
---
pyhwmon/hwmon.py | 8 ++++----
1 file 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):
--
2.8.4
More information about the openbmc
mailing list