summaryrefslogtreecommitdiffstats
path: root/Lib/httplib.py
diff options
context:
space:
mode:
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