From: Victor Stinner Date: Fri, 17 Jun 2011 12:02:18 +0000 (+0200) Subject: (Merge 3.2) Issue #12133: fix a ResourceWarning in urllib.request X-Git-Tag: v3.3.0a1~2106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f073dc286c0d489dfb71046df0358a49e8a26086;p=python (Merge 3.2) 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. --- f073dc286c0d489dfb71046df0358a49e8a26086 diff --cc Misc/NEWS index 38850c7a51,6cc0f03637..630b890591 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -193,9 -25,10 +193,13 @@@ Core and Builtin Library ------- + - Issue #12133: AbstractHTTPHandler.do_open() of urllib.request closes the HTTP + connection if its getresponse() method fails with a socket error. Patch + written by Ezio Melotti. + +- Issue #12240: Allow multiple setup hooks in packaging's setup.cfg files. + Original patch by Erik Bray. + - Issue #9284: Allow inspect.findsource() to find the source of doctest functions.