]> granicus.if.org Git - python/commit
HTTPResponse should not inherit from io.IOBase.
authorJeremy Hylton <jeremy@alum.mit.edu>
Sat, 4 Aug 2007 02:34:24 +0000 (02:34 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Sat, 4 Aug 2007 02:34:24 +0000 (02:34 +0000)
commit97043c3c02d0a531685ce2256eeaf5c4c5d8dc44
tree914518a5401edb42a942c92758212772096fa343
parentc2de7c03a05eb59ff03f07ea799d0c33abad6cc8
HTTPResponse should not inherit from io.IOBase.

I'm not sure why I thought it should originally, but it introduces an
__del__() method on the response which cause the close() to be called
too soon using the HTTP compat class.

Also, remove some stale comments.  The HTTPResponse calls makefile()
immediately, so there is no risk of it closing the socket.
Lib/httplib.py