File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
src/streamlink/plugin/api Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 6
6
pass
7
7
8
8
import requests
9
+ # noinspection PyPackageRequirements
9
10
import urllib3
10
11
from requests import Session
11
12
19
20
urllib3_version = tuple (map (int , urllib3 .__version__ .split ("." )[:3 ]))
20
21
21
22
22
- try :
23
- from requests .packages import urllib3
24
-
25
- # We tell urllib3 to disable warnings about unverified HTTPS requests,
26
- # because in some plugins we have to do unverified requests intentionally.
27
- urllib3 .disable_warnings (urllib3 .exceptions .InsecureRequestWarning )
28
- except (ImportError , AttributeError ):
29
- pass
30
-
31
23
# Never convert percent-encoded characters to uppercase in urllib3>=1.25.4.
32
24
# This is required for sites which compare request URLs byte for byte and return different responses depending on that.
33
25
# Older versions of urllib3 are not compatible with this override and will always convert to uppercase characters.
You can’t perform that action at this time.
0 commit comments