]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Track change of begin() to _begin().
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 2 Jul 2002 20:39:37 +0000 (20:39 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 2 Jul 2002 20:39:37 +0000 (20:39 +0000)
Lib/test/test_httplib.py

index d39e85f4153e7ca8bd2accc35280fe62ad92ed26..6270d8b1aa3d79075cac15afbf21f36752ede47d 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: