Comment 4 for bug 1187429

Revision history for this message
Scott Moser (smoser) wrote :

Verified that this patch fixes issue:
--- /usr/share/pyshared/requests/adapters.py.dist 2013-06-12 22:17:59.472271230 -0400
+++ /usr/share/pyshared/requests/adapters.py 2013-06-12 22:18:38.720699670 -0400
@@ -11,7 +11,7 @@
 import socket

 from .models import Response
-from urllib3.poolmanager import PoolManager, proxy_from_url
+from urllib3.poolmanager import PoolManager, proxy_from_url, ProxyManager
 from urllib3.response import HTTPResponse
 from .compat import urlparse, basestring, urldefrag, unquote
 from .utils import (DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers,

This was upstream fixed at https://github.com/kennethreitz/requests/commit/5152c98223d46c76cb7e88cb833b0087daf83d54
reported at https://github.com/kennethreitz/requests/issues/1017 .

Ie, it seems as simple as adding the import.