We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea14dd5 commit c40bb72Copy full SHA for c40bb72
sphinx/util/requests.py
@@ -7,21 +7,11 @@
7
from urllib.parse import urlsplit
8
9
import requests
10
+from urllib3.exceptions import InsecureRequestWarning
11
12
import sphinx
13
from sphinx.config import Config
14
-try:
15
- from requests.packages.urllib3.exceptions import InsecureRequestWarning
16
-except ImportError:
17
- try:
18
- # for Debian-jessie
19
- from urllib3.exceptions import InsecureRequestWarning
20
- except ImportError:
21
- # for requests < 2.4.0
22
- InsecureRequestWarning = None
23
-
24
25
useragent_header = [('User-Agent',
26
'Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0')]
27
0 commit comments