Commit 4c3badb1 authored by Jason Madden's avatar Jason Madden

More fixes for pylint 2.0.dev2

parent 9b1d5643
...@@ -10,7 +10,7 @@ Cython >= 0.28.1 ...@@ -10,7 +10,7 @@ Cython >= 0.28.1
# Python 3.7b1 requires this. # Python 3.7b1 requires this.
greenlet>=0.4.13 ; platform_python_implementation == "CPython" greenlet>=0.4.13 ; platform_python_implementation == "CPython"
pylint>=1.8.0 ; python_version < "3.4" pylint>=1.8.0 ; python_version < "3.4"
pylint >= 2.0.0.dev1 ; python_version >= "3.4" pylint >= 2.0.0.dev2 ; python_version >= "3.4"
# pylint 2 needs astroid 2; unfortunately, it uses `typed_ast` # pylint 2 needs astroid 2; unfortunately, it uses `typed_ast`
# which has a C extension that doesn't build on PyPy # which has a C extension that doesn't build on PyPy
astroid >= 2.0.0.dev1 ; python_version >= "3.4" and platform_python_implementation == "CPython" astroid >= 2.0.0.dev1 ; python_version >= "3.4" and platform_python_implementation == "CPython"
......
...@@ -428,7 +428,7 @@ class AbstractLoop(object): ...@@ -428,7 +428,7 @@ class AbstractLoop(object):
expiration = now + getswitchinterval() expiration = now + getswitchinterval()
self._stop_callback_timer() self._stop_callback_timer()
while self._callbacks: while self._callbacks:
cb = self._callbacks.popleft() cb = self._callbacks.popleft() # pylint:disable=assignment-from-no-return
count -= 1 count -= 1
self.unref() # XXX: libuv doesn't have a global ref count! self.unref() # XXX: libuv doesn't have a global ref count!
callback = cb.callback callback = cb.callback
...@@ -686,7 +686,7 @@ class AbstractLoop(object): ...@@ -686,7 +686,7 @@ class AbstractLoop(object):
def _format_details(self): def _format_details(self):
msg = '' msg = ''
fileno = self.fileno() fileno = self.fileno() # pylint:disable=assignment-from-none
try: try:
activecnt = self.activecnt activecnt = self.activecnt
except AttributeError: except AttributeError:
......
...@@ -30,6 +30,7 @@ Taken verbatim from Jinja2. ...@@ -30,6 +30,7 @@ Taken verbatim from Jinja2.
https://github.com/mitsuhiko/jinja2/blob/master/jinja2/debug.py#L267 https://github.com/mitsuhiko/jinja2/blob/master/jinja2/debug.py#L267
""" """
# pylint:disable=consider-using-dict-comprehension
#import platform # XXX: gevent cannot import platform at the top level; interferes with monkey patching #import platform # XXX: gevent cannot import platform at the top level; interferes with monkey patching
import sys import sys
......
...@@ -24,6 +24,10 @@ start_new_thread, Lock, get_thread_ident, = monkey.get_original(thread_mod_name, ...@@ -24,6 +24,10 @@ start_new_thread, Lock, get_thread_ident, = monkey.get_original(thread_mod_name,
]) ])
# pylint 2.0.dev2 things collections.dequeue.popleft() doesn't return
# pylint:disable=assignment-from-no-return
class _Condition(object): class _Condition(object):
# pylint:disable=method-hidden # pylint:disable=method-hidden
......
...@@ -279,7 +279,7 @@ class loop(AbstractLoop): ...@@ -279,7 +279,7 @@ class loop(AbstractLoop):
def destroy(self): def destroy(self):
if self._ptr: if self._ptr:
super(loop, self).destroy() super(loop, self).destroy()
# pylint:disable=comparison-with-callable
if globals()["__SYSERR_CALLBACK"] == self._handle_syserr: if globals()["__SYSERR_CALLBACK"] == self._handle_syserr:
set_syserr_cb(None) set_syserr_cb(None)
......
...@@ -56,6 +56,9 @@ if hasattr(__queue__, 'SimpleQueue'): ...@@ -56,6 +56,9 @@ if hasattr(__queue__, 'SimpleQueue'):
__all__ = __implements__ + __extensions__ + __imports__ __all__ = __implements__ + __extensions__ + __imports__
# pylint 2.0.dev2 things collections.dequeue.popleft() doesn't return
# pylint:disable=assignment-from-no-return
def _safe_remove(deq, item): def _safe_remove(deq, item):
# For when the item may have been removed by # For when the item may have been removed by
# Queue._unlock # Queue._unlock
......
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