Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
fa3b489f
Commit
fa3b489f
authored
Dec 15, 2017
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes for pylint 1.8 [skip appveyor]
parent
01f5ccb7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
.pylintrc
.pylintrc
+3
-1
src/gevent/greenlet.py
src/gevent/greenlet.py
+1
-1
src/gevent/libev/watcher.py
src/gevent/libev/watcher.py
+1
-1
src/gevent/pywsgi.py
src/gevent/pywsgi.py
+5
-5
No files found.
.pylintrc
View file @
fa3b489f
[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=1
07
0
max-module-lines=1
10
0
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
...
...
src/gevent/greenlet.py
View file @
fa3b489f
...
...
@@ -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.
...
...
src/gevent/libev/watcher.py
View file @
fa3b489f
...
...
@@ -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
)
...
...
src/gevent/pywsgi.py
View file @
fa3b489f
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment