mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +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
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue