Commit e52414db authored by Jason Madden's avatar Jason Madden

More warning suppression for landscape/prospector.

parent 53f766fe
......@@ -31,3 +31,9 @@ ignore-patterns:
pyroma:
run: true
pyflakes:
disable:
# F821: undefined name; caught better by pylint, where it can be
# controlled for the whole file/per-line
- F821
......@@ -24,6 +24,10 @@ disable=wrong-import-position,
global-statement,
# "from gevent import monkey; monkey.patch_all()"
multiple-statements,
# yes, we know we're doing this. don't replace one warning with another
locally-disabled,
# most of these are deferred imports
cyclic-import,
[FORMAT]
# duplicated from setup.cfg
......
......@@ -2,6 +2,9 @@
"""
Python 2 socket module.
"""
# Our import magic sadly makes this warning useless
# pylint: disable=undefined-variable
import time
from gevent import _socketcommon
from gevent.hub import PYPY
......@@ -510,6 +513,8 @@ if hasattr(__socket__, 'ssl'):
def ssl(sock, keyfile=None, certfile=None):
# deprecated in 2.7.9 but still present;
# sometimes backported by distros. See ssl.py
# Note that we import gevent.ssl, not _ssl2, to get the correct
# version.
from gevent import ssl as _sslmod
# wrap_socket is 2.7.9/backport, sslwrap_simple is older. They take
# the same arguments.
......
......@@ -2,6 +2,9 @@
"""
Python 3 socket module.
"""
# Our import magic sadly makes this warning useless
# pylint: disable=undefined-variable
import io
import os
import sys
......
......@@ -8,6 +8,9 @@ This module implements cooperative SSL socket wrappers.
"""
from __future__ import absolute_import
# Our import magic sadly makes this warning useless
# pylint: disable=undefined-variable
import ssl as __ssl__
try:
......
......@@ -6,6 +6,8 @@ For the documentation, refer to :mod:`ssl` module manual.
This module implements cooperative SSL socket wrappers.
"""
# Our import magic sadly makes this warning useless
# pylint: disable=undefined-variable
from __future__ import absolute_import
import ssl as __ssl__
......
......@@ -3,3 +3,7 @@
ignore=E702,E265,E402,E731,E266,E261,W503,E129,N801
max_line_length=160
exclude=.runtimes,.eggs,.tox,.git,build,2.6,2.7,2.7pypy,3.3,3.5,test_support.py,test_queue.py,patched_tests_setup.py,test_threading_2.py,lock_tests.py,_sslgte279.py,3.4
[flake8]
# F821: undefined name; caught better by pylint, where it can be locally disabled
ignore=F821
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