Use vendored urllib3.
As long as requests ships with urllib3, we can't fall back to the "system" urllib3, since that breaks class-identity checks.
This commit is contained in:
parent
615f094ef3
commit
6727e9b559
1 changed files with 1 additions and 4 deletions
|
@ -18,10 +18,7 @@ except ImportError:
|
||||||
import robotparser
|
import robotparser
|
||||||
import requests
|
import requests
|
||||||
from requests.adapters import HTTPAdapter
|
from requests.adapters import HTTPAdapter
|
||||||
try:
|
from requests.packages.urllib3.util.retry import Retry
|
||||||
from urllib3.util.retry import Retry
|
|
||||||
except ImportError:
|
|
||||||
from requests.packages.urllib3.util.retry import Retry
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import cgi
|
import cgi
|
||||||
|
|
Loading…
Reference in a new issue