summaryrefslogtreecommitdiff
path: root/sphinx/util/requests.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/requests.py')
-rw-r--r--sphinx/util/requests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/util/requests.py b/sphinx/util/requests.py
index bd9a94338..581efbfd5 100644
--- a/sphinx/util/requests.py
+++ b/sphinx/util/requests.py
@@ -25,17 +25,17 @@ try:
except ImportError:
# python-requests package in Debian jessie does not provide ``requests.packages.urllib3``.
# So try to import the exceptions from urllib3 package.
- from urllib3.exceptions import SSLError # type: ignore
+ from urllib3.exceptions import SSLError
try:
from requests.packages.urllib3.exceptions import InsecureRequestWarning
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',