Change _begin() back to begin().

Client code could create responses explicitly.
This commit is contained in:
Jeremy Hylton 2002-07-12 14:04:09 +00:00
parent dd523eef95
commit 39c03808c7
2 changed files with 5 additions and 6 deletions

View file

@ -198,7 +198,6 @@ class HTTPMessage(mimetools.Message):
else:
self.status = self.status + '; bad seek'
break
class HTTPResponse:
@ -260,7 +259,7 @@ class HTTPResponse:
raise BadStatusLine(line)
return version, status, reason
def _begin(self):
def begin(self):
if self.msg is not None:
# we've already started reading the response
return
@ -741,7 +740,7 @@ class HTTPConnection:
else:
response = self.response_class(self.sock, strict=self.strict)
response._begin()
response.begin()
assert response.will_close != _UNKNOWN
self.__state = _CS_IDLE