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

@ -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):