From: Jeremy Hylton Date: Fri, 28 Jun 2002 23:54:30 +0000 (+0000) Subject: Track change of begin() to _begin(). X-Git-Tag: v2.3c1~5168 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=566fe9ef6661a180964d3617c0c2287c38d3d83a;p=thirdparty%2FPython%2Fcpython.git Track change of begin() to _begin(). --- diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index 218ae9c16313..39b1e13f806a 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -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: