Commit d95f526c authored by Jason Madden's avatar Jason Madden

Fix pylint.

parent 2dc266c0
......@@ -11,7 +11,7 @@ print(__file__)
if sys.version_info[:2] == (2, 7):
# Prior to gevent 1.3, 'python -m gevent.monkey' guaranteed this to be
# None for all python versions.
print(__package__ == None)
print(__package__ is None)
else:
if sys.argv[1] == 'patched':
# __package__ is handled differently, for some reason, and
......@@ -25,4 +25,4 @@ else:
print(__package__ == '')
else:
# but the interpreter sets it to None
print(__package__ == None)
print(__package__ is None)
......@@ -556,7 +556,7 @@ else:
self._threadpool = ThreadPool(max_workers)
self._threadpool._destroy_worker_hub = True
def submit(self, fn, *args, **kwargs):
def submit(self, fn, *args, **kwargs): # pylint:disable=arguments-differ
with self._shutdown_lock: # pylint:disable=not-context-manager
if self._shutdown:
raise RuntimeError('cannot schedule new futures after shutdown')
......
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