]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #12133: fix a ResourceWarning in urllib.request
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 17 Jun 2011 12:01:18 +0000 (14:01 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 17 Jun 2011 12:01:18 +0000 (14:01 +0200)
commita4c45d73cf6eeb8ede6ee701c0372d7e45dc24f2
treec7bee889bda36c5418ff802a662d10b2f0efa61e
parent0f83b1511c76e892b48b16d656cceb032bdb9cb3
Issue #12133: fix a ResourceWarning in urllib.request

AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if
its getresponse() method fails with a socket error. Patch written by Ezio
Melotti.
Lib/test/test_urllib2.py
Lib/urllib/request.py
Misc/NEWS