Show More
@@ -377,10 +377,7 b' class HTTPResponse(httplib.HTTPResponse)' | |||||
377 |
|
377 | |||
378 |
|
378 | |||
379 | def __init__(self, sock, debuglevel=0, strict=0, method=None): |
|
379 | def __init__(self, sock, debuglevel=0, strict=0, method=None): | |
380 | if method: # the httplib in python 2.3 uses the method arg |
|
380 | httplib.HTTPResponse.__init__(self, sock, debuglevel, method) | |
381 | httplib.HTTPResponse.__init__(self, sock, debuglevel, method) |
|
|||
382 | else: # 2.2 doesn't |
|
|||
383 | httplib.HTTPResponse.__init__(self, sock, debuglevel) |
|
|||
384 | self.fileno = sock.fileno |
|
381 | self.fileno = sock.fileno | |
385 | self.code = None |
|
382 | self.code = None | |
386 | self._rbuf = '' |
|
383 | self._rbuf = '' |
General Comments 0
You need to be logged in to leave comments.
Login now