Commit ff5ca13b authored by Jason Madden's avatar Jason Madden

pylint

parent 3c7d4fb9
...@@ -567,7 +567,7 @@ class Hub(RawGreenlet): ...@@ -567,7 +567,7 @@ class Hub(RawGreenlet):
try: try:
cb = self.loop.run_callback(current.switch) cb = self.loop.run_callback(current.switch)
except: # pylint:disable=bare-except except: # pylint:disable=bare-except
traceback.print_exc() traceback.print_exc(file=self.exception_stream)
try: try:
self.parent.throw(type, value) self.parent.throw(type, value)
finally: finally:
...@@ -587,7 +587,7 @@ class Hub(RawGreenlet): ...@@ -587,7 +587,7 @@ class Hub(RawGreenlet):
# called in error situations when it's not safe to import. # called in error situations when it's not safe to import.
stderr = sys.stderr stderr = sys.stderr
if type(stderr).__name__ == 'FileObjectThread': if type(stderr).__name__ == 'FileObjectThread':
stderr = stderr.io stderr = stderr.io # pylint:disable=no-member
return stderr return stderr
def print_exception(self, context, type, value, tb): def print_exception(self, context, type, value, tb):
...@@ -616,7 +616,7 @@ class Hub(RawGreenlet): ...@@ -616,7 +616,7 @@ class Hub(RawGreenlet):
try: try:
context = self.format_context(context) context = self.format_context(context)
except: # pylint:disable=bare-except except: # pylint:disable=bare-except
traceback.print_exc() traceback.print_exc(file=self.exception_stream)
context = repr(context) context = repr(context)
errstream.write('%s failed with %s\n\n' % (context, getattr(type, '__name__', 'exception'), )) errstream.write('%s failed with %s\n\n' % (context, getattr(type, '__name__', 'exception'), ))
......
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