fixed pylint warnings
Change-Id: Ibb3da77e9a53b7293a280659defc029416e30e3b
This commit is contained in:
committed by
Enrico Faulhaber
parent
a928c95efd
commit
c1eb764b09
@@ -188,7 +188,7 @@ class PpmsSim:
|
||||
else:
|
||||
self.status.pos = 5
|
||||
|
||||
self.st = sum([self.status[i] << (i * 4) for i in range(4)])
|
||||
self.st = sum(self.status[i] << (i * 4) for i in range(4))
|
||||
self.r1 = self.t * 0.1
|
||||
self.i1 = self.t % 10.0
|
||||
self.r2 = 1000 / self.t
|
||||
|
||||
@@ -144,7 +144,7 @@ class CalCurve:
|
||||
|
||||
try:
|
||||
parser = cls(**args)
|
||||
with open(filename) as f:
|
||||
with open(filename, encoding='utf-8') as f:
|
||||
for line in f:
|
||||
parser.parse(line)
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user