Changed makefile() args from r/w to rb/wb, for non-unix compatability.

This commit is contained in:
Jack Jansen 1996-02-14 16:06:24 +00:00
parent 0d12ead05c
commit 2bb57b81f2
5 changed files with 7 additions and 7 deletions

View file

@ -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`