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/gopherlib.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/gopherlib.py')
-rw-r--r-- | Lib/gopherlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/gopherlib.py b/Lib/gopherlib.py index 7550d5c..cf06e95 100644 --- a/Lib/gopherlib.py +++ b/Lib/gopherlib.py @@ -69,7 +69,7 @@ def send_selector(selector, host, port = 0): s.connect(host, port) s.send(selector + CRLF) s.shutdown(1) - return s.makefile('r') + return s.makefile('rb') # Send a selector and a query string def send_query(selector, query, host, port = 0): |