diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-03-15 16:17:51 -0700 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2019-03-15 16:53:56 -0700 |
commit | 4f5d992bd75823e03ef64a77104b4ddee08aaf12 (patch) | |
tree | ffa8ecce99b544afa346f038dc2ce7b22dff5c5f /python/fatcat_tools/harvest/harvest_common.py | |
parent | c65b5da92ab8936c5e790e4e6cd51d792f39e220 (diff) | |
download | fatcat-4f5d992bd75823e03ef64a77104b4ddee08aaf12.tar.gz fatcat-4f5d992bd75823e03ef64a77104b4ddee08aaf12.zip |
HACK: force pylint to ignore urllib3 Retry import
As the code comment mentions, not sure why pylint throws this error.
requests and urllib3 are recent, and this code runs fine in tests and
QA, and pylint is running (in CI) within pipenv.
Diffstat (limited to 'python/fatcat_tools/harvest/harvest_common.py')
-rw-r--r-- | python/fatcat_tools/harvest/harvest_common.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/fatcat_tools/harvest/harvest_common.py b/python/fatcat_tools/harvest/harvest_common.py index 11fd5fe8..4a71a655 100644 --- a/python/fatcat_tools/harvest/harvest_common.py +++ b/python/fatcat_tools/harvest/harvest_common.py @@ -5,7 +5,9 @@ import time import datetime import requests from requests.adapters import HTTPAdapter -from requests.packages.urllib3.util.retry import Retry +# unclear why pylint chokes on this import. Recent 'requests' and 'urllib3' are +# in Pipenv.lock, and there are no errors in QA +from requests.packages.urllib3.util.retry import Retry # pylint: disable=import-error # Used for parsing ISO date format (YYYY-MM-DD) |