From ded0c033c2848eeeccddf3c7e4f837c9e217f692 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 7 Feb 2009 22:55:24 +0000 Subject: [PATCH] fix typo and test_urllib failures --- Lib/http/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/http/client.py b/Lib/http/client.py index f816d58cfd1..03aef474fa5 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -272,7 +272,7 @@ class HTTPResponse: # applies to HTTP/1.1 connections.) This will happen if a self.fp.read() # is done (without a size) whether self.fp is buffered or not. # So, no self.fp.read() by clients unless they know what they are doing. - self.fp = sock.makefile("rb") + self.fp = sock.makefile(sock, "rb") self.debuglevel = debuglevel self.strict = strict self._method = method