Skip to content

Commit 2bae0d2

Browse files
author
Kenneth Reitz
committed
new urllib3 version
psf#498
1 parent 751e2ea commit 2bae0d2

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pyc:
3434
deps:
3535
rm -fr requests/packages/urllib3
3636
git clone https://github.com/shazow/urllib3.git
37-
cd urllib3 && git checkout release && cd ..
37+
cd urllib3 && git checkout master && cd ..
3838
mv urllib3/urllib3 requests/packages/
3939
rm -fr urllib3
4040

requests/packages/urllib3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
__author__ = 'Andrey Petrov (andrey.petrov@shazow.net)'
1212
__license__ = 'MIT'
13-
__version__ = '1.3'
13+
__version__ = 'dev'
1414

1515

1616
from .connectionpool import (

requests/packages/urllib3/connectionpool.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,11 @@ def _make_request(self, conn, method, url, timeout=_Default,
260260

261261
httplib_response = conn.getresponse()
262262

263-
log.debug("\"%s %s %s\" %s %s" %
264-
(method, url,
265-
conn._http_vsn_str, # pylint: disable-msg=W0212
266-
httplib_response.status, httplib_response.length))
263+
# AppEngine doesn't have a version attr.
264+
http_version = getattr(conn, '_http_vsn_str', 'HTTP/?'),
265+
log.debug("\"%s %s %s\" %s %s" % (method, url, http_version,
266+
httplib_response.status,
267+
httplib_response.length))
267268

268269
return httplib_response
269270

0 commit comments

Comments
 (0)