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
7e17e88a
Commit
7e17e88a
authored
Sep 10, 2022
by
ento
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pylint: Disable one-off violations with inline comments
parent
7c6b53f0
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
src/gevent/local.py
src/gevent/local.py
+1
-1
src/gevent/resolver/dnspython.py
src/gevent/resolver/dnspython.py
+1
-1
src/gevent/testing/leakcheck.py
src/gevent/testing/leakcheck.py
+1
-1
src/gevent/tests/test__issue6.py
src/gevent/tests/test__issue6.py
+1
-1
src/gevent/tests/test__monkey_select.py
src/gevent/tests/test__monkey_select.py
+1
-1
No files found.
src/gevent/local.py
View file @
7e17e88a
...
...
@@ -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)
...
...
src/gevent/resolver/dnspython.py
View file @
7e17e88a
...
...
@@ -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
...
...
src/gevent/testing/leakcheck.py
View file @
7e17e88a
...
...
@@ -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
()
...
...
src/gevent/tests/test__issue6.py
View file @
7e17e88a
...
...
@@ -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
()
...
...
src/gevent/tests/test__monkey_select.py
View file @
7e17e88a
...
...
@@ -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
...
...
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