From 6727e9b559f44514452cd3b151a537032d833b7a Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Wed, 16 Mar 2016 23:18:19 +0100 Subject: [PATCH] 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. --- dosagelib/util.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dosagelib/util.py b/dosagelib/util.py index 4f89bdea3..6968dc1dc 100644 --- a/dosagelib/util.py +++ b/dosagelib/util.py @@ -18,10 +18,7 @@ except ImportError: import robotparser import requests from requests.adapters import HTTPAdapter -try: - from urllib3.util.retry import Retry -except ImportError: - from requests.packages.urllib3.util.retry import Retry +from requests.packages.urllib3.util.retry import Retry import sys import os import cgi