Index: gclient_utils.py |
diff --git a/gclient_utils.py b/gclient_utils.py |
index ecc59cc7f6555bd5a6ca8b0d1bfd61518bf5c4a3..d0fbb1ef73431b4980f929b735aee80a8a3f8c16 100644 |
--- a/gclient_utils.py |
+++ b/gclient_utils.py |
@@ -316,6 +316,8 @@ def MakeFileAutoFlush(fileobj, delay=10): |
fileobj.delay = delay |
return fileobj |
+ # Attribute 'XXX' defined outside __init__ |
+ # pylint: disable=W0201 |
new_fileobj = SoftClone(fileobj) |
if not hasattr(new_fileobj, 'lock'): |
new_fileobj.lock = threading.Lock() |
@@ -350,6 +352,8 @@ def MakeFileAnnotated(fileobj): |
# Already patched. |
return fileobj |
+ # Attribute 'XXX' defined outside __init__ |
+ # pylint: disable=W0201 |
new_fileobj = SoftClone(fileobj) |
if not hasattr(new_fileobj, 'lock'): |
new_fileobj.lock = threading.Lock() |
@@ -698,6 +702,8 @@ class ExecutionQueue(object): |
"""Runs in its own thread.""" |
logging.debug('running(%s)' % self.item.name) |
work_queue = self.kwargs['work_queue'] |
+ # It's necessary to catch all exceptions. |
+ # pylint: disable=W0703 |
try: |
self.item.run(*self.args, **self.kwargs) |
except Exception: |