From fcb272cc36b3fcf64220f669e48df8bd4566563c Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Tue, 18 Apr 2017 10:52:34 +0100 Subject: [PATCH] remove seemingly redundant pyflakes references --- .gitignore | 1 - requests/cookies.py | 2 -- requests/utils.py | 2 -- 3 files changed, 5 deletions(-) diff --git a/.gitignore b/.gitignore index 9fcc6c3d..519f3d32 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ junit-report.xml pylint.txt toy.py tox.ini -violations.pyflakes.txt cover/ build/ docs/_build diff --git a/requests/cookies.py b/requests/cookies.py index 856fd45e..6484af6b 100644 --- a/requests/cookies.py +++ b/requests/cookies.py @@ -19,8 +19,6 @@ from .compat import cookielib, urlparse, urlunparse, Morsel try: import threading - # grr, pyflakes: this fixes "redefinition of unused 'threading'" - threading except ImportError: import dummy_threading as threading diff --git a/requests/utils.py b/requests/utils.py index 727dc267..05097dd5 100644 --- a/requests/utils.py +++ b/requests/utils.py @@ -32,8 +32,6 @@ from .structures import CaseInsensitiveDict, TimedCache, TimedCacheManaged from .exceptions import ( InvalidURL, InvalidHeader, FileModeWarning, UnrewindableBodyError) -_hush_pyflakes = (RequestsCookieJar,) - NETRC_FILES = ('.netrc', '_netrc') DEFAULT_CA_BUNDLE_PATH = certs.where()