diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-02-14 16:06:24 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-02-14 16:06:24 (GMT) |
commit | 2bb57b81f211f5c16d9542620b180dd5097d57c7 (patch) | |
tree | 48bbd277e7850dd5741cc32ba1e5218921821850 /Lib/SocketServer.py | |
parent | 0d12ead05cf43d3a8f6e79a1b20fc56c7fb5bc86 (diff) | |
download | cpython-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/SocketServer.py')
-rw-r--r-- | Lib/SocketServer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py index b615247..9a646ab 100644 --- a/Lib/SocketServer.py +++ b/Lib/SocketServer.py @@ -392,8 +392,8 @@ class StreamRequestHandler(BaseRequestHandler): def setup(self): self.connection = self.request - self.rfile = self.connection.makefile('r') - self.wfile = self.connection.makefile('w', 0) + self.rfile = self.connection.makefile('rb') + self.wfile = self.connection.makefile('wb', 0) def finish(self): self.wfile.flush() |