]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix several failing tests in test_urllib2net.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 8 Aug 2007 17:36:33 +0000 (17:36 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 8 Aug 2007 17:36:33 +0000 (17:36 +0000)
commitdf5f6b551ad89257a579682114ae9f2ab1d3755e
treea05db2f1a62dd2d879de945b8938cb35c010ca41
parent6a10e02aa644ad7f9c1f2ab6dd249c1a414c0c8b
Fix several failing tests in test_urllib2net.

The HTTPResponse object is being passed to BufferedReader, but it
wasn't designed to be used that way.  These changes extend the hacks
that have already been made in urllib2 to get the tests to pass.

The hacks need to be removed and proper support for use with the io
library.  That's a project for another day.
Lib/httplib.py
Lib/urllib2.py