diff options
Diffstat (limited to 'sphinx/util/requests.py')
-rw-r--r-- | sphinx/util/requests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/requests.py b/sphinx/util/requests.py index 43ce64f10..0a9d63489 100644 --- a/sphinx/util/requests.py +++ b/sphinx/util/requests.py @@ -24,10 +24,10 @@ try: except ImportError: try: # for Debian-jessie - from urllib3.exceptions import InsecureRequestWarning # type: ignore + from urllib3.exceptions import InsecureRequestWarning except ImportError: # for requests < 2.4.0 - InsecureRequestWarning = None # type: ignore + InsecureRequestWarning = None useragent_header = [('User-Agent', |