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:
Tobias Gruetzmacher 2016-03-16 23:18:19 +01:00
parent 615f094ef3
commit 6727e9b559

View file

@ -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