[issue11563] test_urllibnet is triggering a ResourceWarning
Senthil Kumaran
report at bugs.python.org
Fri Mar 18 03:30:12 CET 2011
Senthil Kumaran <orsenthil at gmail.com> added the comment:
On Thu, Mar 17, 2011 at 06:30:51PM +0000, Jeff McNeil wrote:
> I went down the same path as AbstractHTTPHandler and added a Connection: close header.
This is fine for the moment, tough I wish that the TODO pending in
urllib.request with HTTP1.1 persistent connection be removed soon and
will require changes it other places too.
> I contemplated changing urlretrieve to use build_opener as urlopen
There is bug opened for this. All that would be required is output
behavior of urlretrieve remain same, the implementation details (using
build_opener or using urlopen itself!) may not be relevant and I
think, it can be implemented using urlopen instead going through the
handlers and OpenerDirector, BTW, urlretrive is a convenience
function of some sort.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11563>
_______________________________________
More information about the Python-bugs-list
mailing list