]> granicus.if.org Git - python/commitdiff
revert 69416; it didn't help much
authorBenjamin Peterson <benjamin@python.org>
Sun, 8 Feb 2009 00:29:20 +0000 (00:29 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 8 Feb 2009 00:29:20 +0000 (00:29 +0000)
Lib/http/client.py

index 03aef474fa5e66746e0e90feb2e70bd968af138b..f816d58cfd11a507e97922a2d13cc3881ad1193c 100644 (file)
@@ -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(sock, "rb")
+        self.fp = sock.makefile("rb")
         self.debuglevel = debuglevel
         self.strict = strict
         self._method = method