Commit f7e27d26 authored by dieter's avatar dieter

make `flake8` happy

parent 8e667785
...@@ -227,7 +227,7 @@ def VmSize(): ...@@ -227,7 +227,7 @@ def VmSize():
except: # noqa: E722 do not use bare 'except' except: # noqa: E722 do not use bare 'except'
return 0 return 0
else: else:
l_ = list(filter(lambda l: l[:7] == 'VmSize:', lines)) l_ = list(filter(lambda l: l[:7] == 'VmSize:', lines)) # noqa: E741
if l_: if l_:
l_ = l_[0][7:].strip().split()[0] l_ = l_[0][7:].strip().split()[0]
return int(l_) return int(l_)
......
...@@ -536,4 +536,3 @@ class Daemon(threading.Thread): ...@@ -536,4 +536,3 @@ class Daemon(threading.Thread):
super(Daemon, self).join(*args, **kw) super(Daemon, self).join(*args, **kw)
if self.is_alive(): if self.is_alive():
raise AssertionError("Thread %s did not stop" % self.name) raise AssertionError("Thread %s did not stop" % self.name)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment