looking at changes between alpha1 and alpha2 (tag:2.7.2~rc1-2..tag:2.7.2-2) one change that looks suspicious is
diff -r 8527427914a2 Lib/urllib2.py --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -1172,6 +1172,8 @@ r = h.getresponse() except socket.error, err: # XXX what error? raise URLError(err) + finally: + h.close()
# Pick apart the HTTPResponse object to get the addinfourl # object initialized properly.
that came from upstream changeset 70837:18e6ccc332d5 [1] that reports to fix issue 12133 [2]
-- [1] http://code.activestate.com/lists/python-checkins/97757/ [2] http://bugs.python.org/issue12133
looking at changes between alpha1 and alpha2 (tag:2. 7.2~rc1- 2..tag: 2.7.2-2) one change that looks suspicious is
diff -r 8527427914a2 Lib/urllib2.py
--- a/Lib/urllib2.py
+++ b/Lib/urllib2.py
@@ -1172,6 +1172,8 @@
r = h.getresponse()
except socket.error, err: # XXX what error?
raise URLError(err)
+ finally:
+ h.close()
# Pick apart the HTTPResponse object to get the addinfourl
# object initialized properly.
that came from upstream changeset 70837:18e6ccc332d5 [1] that reports to fix issue 12133 [2]
-- code.activestat e.com/lists/ python- checkins/ 97757/ bugs.python. org/issue12133
[1] http://
[2] http://