Commit fa3b489f authored by Jason Madden's avatar Jason Madden

Changes for pylint 1.8 [skip appveyor]

parent 01f5ccb7
[MASTER]
extension-pkg-whitelist=gevent.libuv._corecffi,gevent.libev._corecffi,gevent.local
[MESSAGES CONTROL]
......@@ -59,7 +61,7 @@ disable=wrong-import-position,
[FORMAT]
# duplicated from setup.cfg
max-line-length=160
max-module-lines=1070
max-module-lines=1100
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
......
......@@ -106,7 +106,7 @@ class Greenlet(greenlet):
args = ()
_kwargs = None
def __init__(self, run=None, *args, **kwargs):
def __init__(self, run=None, *args, **kwargs): # pylint:disable=keyword-arg-before-vararg
"""
Greenlet constructor.
......
......@@ -210,7 +210,7 @@ class fork(_base.ForkMixin, watcher):
pass
class async(_base.AsyncMixin, watcher):
class async(_base.AsyncMixin, watcher): # XXX: Yeah, we know. pylint:disable=assign-to-new-keyword
def send(self):
libev.ev_async_send(self.loop._ptr, self._watcher)
......
......@@ -517,20 +517,20 @@ class WSGIHandler(object):
if len(words) == 3:
self.command, self.path, self.request_version = words
if not self._check_http_version():
raise _InvalidClientRequest('Invalid http version: %r', raw_requestline)
raise _InvalidClientRequest('Invalid http version: %r' % (raw_requestline,))
elif len(words) == 2:
self.command, self.path = words
if self.command != "GET":
raise _InvalidClientRequest('Expected GET method: %r', raw_requestline)
raise _InvalidClientRequest('Expected GET method: %r' % (raw_requestline,))
self.request_version = "HTTP/0.9"
# QQQ I'm pretty sure we can drop support for HTTP/0.9
else:
raise _InvalidClientRequest('Invalid HTTP method: %r', raw_requestline)
raise _InvalidClientRequest('Invalid HTTP method: %r' % (raw_requestline,))
self.headers = self.MessageClass(self.rfile, 0)
if self.headers.status:
raise _InvalidClientRequest('Invalid headers status: %r', self.headers.status)
raise _InvalidClientRequest('Invalid headers status: %r' % (self.headers.status,))
if self.headers.get("transfer-encoding", "").lower() == "chunked":
try:
......@@ -542,7 +542,7 @@ class WSGIHandler(object):
if content_length is not None:
content_length = int(content_length)
if content_length < 0:
raise _InvalidClientRequest('Invalid Content-Length: %r', content_length)
raise _InvalidClientRequest('Invalid Content-Length: %r' % (content_length,))
if content_length and self.command in ('HEAD', ):
raise _InvalidClientRequest('Unexpected Content-Length')
......
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