Do not crash with bundled urllib3
This commit is contained in:
parent
e64b3ef9a7
commit
2c53edd5ac
1 changed files with 4 additions and 1 deletions
|
|
@ -20,7 +20,10 @@
|
|||
from __future__ import absolute_import, print_function
|
||||
|
||||
import re
|
||||
import urllib3
|
||||
try:
|
||||
import urllib3
|
||||
except ImportError:
|
||||
from requests.packages import urllib3
|
||||
try:
|
||||
from urllib.parse import urlparse, urljoin
|
||||
except ImportError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue