1
Description: backport appengine fixes from requests
4
diff -Naupr urllib3-1.3.orig/urllib3/connectionpool.py urllib3-1.3/urllib3/connectionpool.py
5
--- urllib3-1.3.orig/urllib3/connectionpool.py 2012-03-25 13:16:45.000000000 -0500
6
+++ urllib3-1.3/urllib3/connectionpool.py 2012-09-07 09:35:17.189259739 -0500
7
@@ -260,10 +260,11 @@ class HTTPConnectionPool(ConnectionPool,
9
httplib_response = conn.getresponse()
11
- log.debug("\"%s %s %s\" %s %s" %
13
- conn._http_vsn_str, # pylint: disable-msg=W0212
14
- httplib_response.status, httplib_response.length))
15
+ # AppEngine doesn't have a version attr.
16
+ http_version = getattr(conn, '_http_vsn_str', 'HTTP/?'),
17
+ log.debug("\"%s %s %s\" %s %s" % (method, url, http_version,
18
+ httplib_response.status,
19
+ httplib_response.length))
21
return httplib_response