[Python-checkins] python/dist/src/Lib httplib.py,1.58,1.59
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Fri, 12 Jul 2002 07:04:11 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv11475a
Modified Files:
httplib.py
Log Message:
Change _begin() back to begin().
Client code could create responses explicitly.
Index: httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/httplib.py,v
retrieving revision 1.58
retrieving revision 1.59
diff -C2 -d -r1.58 -r1.59
*** httplib.py 9 Jul 2002 21:22:36 -0000 1.58
--- httplib.py 12 Jul 2002 14:04:08 -0000 1.59
***************
*** 199,203 ****
self.status = self.status + '; bad seek'
break
-
class HTTPResponse:
--- 199,202 ----
***************
*** 261,265 ****
return version, status, reason
! def _begin(self):
if self.msg is not None:
# we've already started reading the response
--- 260,264 ----
return version, status, reason
! def begin(self):
if self.msg is not None:
# we've already started reading the response
***************
*** 742,746 ****
response = self.response_class(self.sock, strict=self.strict)
! response._begin()
assert response.will_close != _UNKNOWN
self.__state = _CS_IDLE
--- 741,745 ----
response = self.response_class(self.sock, strict=self.strict)
! response.begin()
assert response.will_close != _UNKNOWN
self.__state = _CS_IDLE