mirror of https://github.com/python/cpython.git
Track change of begin() to _begin().
This commit is contained in:
parent
b6a9213930
commit
566fe9ef66
|
@ -16,7 +16,7 @@ def makefile(self, mode, bufsize=None):
|
|||
body = "HTTP/1.1 200 Ok\r\n\r\nText"
|
||||
sock = FakeSocket(body)
|
||||
resp = httplib.HTTPResponse(sock,1)
|
||||
resp.begin()
|
||||
resp._begin()
|
||||
print resp.read()
|
||||
resp.close()
|
||||
|
||||
|
@ -24,7 +24,7 @@ def makefile(self, mode, bufsize=None):
|
|||
sock = FakeSocket(body)
|
||||
resp = httplib.HTTPResponse(sock,1)
|
||||
try:
|
||||
resp.begin()
|
||||
resp._begin()
|
||||
except httplib.BadStatusLine:
|
||||
print "BadStatusLine raised as expected"
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue