summaryrefslogtreecommitdiffstats
path: root/Lib/httplib.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-07-12 14:04:09 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-07-12 14:04:09 (GMT)
commit39c03808c753457992dc931e1dd08a65e72a9a8f (patch)
tree9ddebc40369e5ca30862aa4df3b9fc13687375a3 /Lib/httplib.py
parentdd523eef957bc1e4e1376dafde16b4dd81a3b9b7 (diff)
downloadcpython-39c03808c753457992dc931e1dd08a65e72a9a8f.zip
cpython-39c03808c753457992dc931e1dd08a65e72a9a8f.tar.gz
cpython-39c03808c753457992dc931e1dd08a65e72a9a8f.tar.bz2
Change _begin() back to begin().
Client code could create responses explicitly.
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r--Lib/httplib.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index 1db930e..34ed2da 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -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