summaryrefslogtreecommitdiffstats
path: root/Lib/http/client.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-02-07 22:55:24 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-02-07 22:55:24 (GMT)
commitded0c033c2848eeeccddf3c7e4f837c9e217f692 (patch)
tree00d24390911756aff58510a8b77e2f13e92c4726 /Lib/http/client.py
parent8a68122e9cb1ecd0ade79052ac66ad35c6333270 (diff)
downloadcpython-ded0c033c2848eeeccddf3c7e4f837c9e217f692.zip
cpython-ded0c033c2848eeeccddf3c7e4f837c9e217f692.tar.gz
cpython-ded0c033c2848eeeccddf3c7e4f837c9e217f692.tar.bz2
fix typo and test_urllib failures
Diffstat (limited to 'Lib/http/client.py')
-rw-r--r--Lib/http/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py
index f816d58..03aef47 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