Commit 7e17e88a authored by ento's avatar ento

Pylint: Disable one-off violations with inline comments

parent 7c6b53f0
......@@ -574,7 +574,7 @@ def _local_find_descriptors(self):
# (e.g., on PyPy). So we set it at runtime. Cython
# will raise an error if we're compiled.
def __new__(cls, *args, **kw):
self = super(local, cls).__new__(cls)
self = super(local, cls).__new__(cls) # pylint:disable=no-value-for-parameter
# We get the cls in *args for some reason
# too when we do it this way....except on PyPy3, which does
# not *unless* it's wrapped in a classmethod (which it is)
......
......@@ -270,7 +270,7 @@ class _HostsResolver(object):
# gethostbyname_ex so it's probably fine.
aliases = self.hosts_file.aliases
result = []
if hostname in aliases:
if hostname in aliases: # pylint:disable=consider-using-get
cannon = aliases[hostname]
else:
cannon = hostname
......
......@@ -127,7 +127,7 @@ class _RefCountChecker(object):
if 'urlparse' in sys.modules:
sys.modules['urlparse'].clear_cache()
if 'urllib.parse' in sys.modules:
sys.modules['urllib.parse'].clear_cache()
sys.modules['urllib.parse'].clear_cache() # pylint:disable=no-member
return self._growth()
......
......@@ -29,7 +29,7 @@ elif sys.argv[1:] == ['subprocess']: # pragma: no cover
try:
line = raw_input()
except NameError:
line = input()
line = input() # pylint:disable=bad-builtin
print('%s chars.' % len(line))
sys.stdout.flush()
......
......@@ -22,7 +22,7 @@ class TestSelect(greentest.TestCase):
'kevent',
'devpoll',
):
_make_test(name, locals())
_make_test(name, locals()) # pylint:disable=too-many-function-args
del name
del _make_test
......
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