summaryrefslogtreecommitdiffstats
path: root/Lib/httplib.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-02-14 16:06:24 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-02-14 16:06:24 (GMT)
commit2bb57b81f211f5c16d9542620b180dd5097d57c7 (patch)
tree48bbd277e7850dd5741cc32ba1e5218921821850 /Lib/httplib.py
parent0d12ead05cf43d3a8f6e79a1b20fc56c7fb5bc86 (diff)
downloadcpython-2bb57b81f211f5c16d9542620b180dd5097d57c7.zip
cpython-2bb57b81f211f5c16d9542620b180dd5097d57c7.tar.gz
cpython-2bb57b81f211f5c16d9542620b180dd5097d57c7.tar.bz2
Changed makefile() args from r/w to rb/wb, for non-unix compatability.
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r--Lib/httplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index 3aeb643..ca431ab 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -82,7 +82,7 @@ class HTTP:
self.send('\r\n')
def getreply(self):
- self.file = self.sock.makefile('r')
+ self.file = self.sock.makefile('rb')
self.sock = None
line = self.file.readline()
if self.debuglevel > 0: print 'reply:', `line`