mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Changed makefile() args from r/w to rb/wb, for non-unix compatability.
This commit is contained in:
parent
0d12ead05c
commit
2bb57b81f2
5 changed files with 7 additions and 7 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue