]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Track change of begin() to _begin().
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 28 Jun 2002 23:54:30 +0000 (23:54 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 28 Jun 2002 23:54:30 +0000 (23:54 +0000)
Lib/test/test_httplib.py

index 218ae9c163131b9207d45bd09fe78ee3c7db3ec7..39b1e13f806a59b4114583a71956362b2c5c1a32 100644 (file)
@@ -16,7 +16,7 @@ class FakeSocket:
 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 @@ body = "HTTP/1.1 400.100 Not Ok\r\n\r\nText"
 sock = FakeSocket(body)
 resp = httplib.HTTPResponse(sock,1)
 try:
-    resp.begin()
+    resp._begin()
 except httplib.BadStatusLine:
     print "BadStatusLine raised as expected"
 else: