mirror of
https://github.com/python/cpython.git
synced 2025-09-01 06:28:36 +00:00
Fredrik Lundh:
This fixes a bunch of socket.connect(host, post) calls. Note that I haven't tested all modules -- I don't have enough servers here...
This commit is contained in:
parent
1916b35f58
commit
93a7c0fe6b
7 changed files with 9 additions and 9 deletions
|
@ -66,7 +66,7 @@ def send_selector(selector, host, port = 0):
|
|||
elif type(port) == type(''):
|
||||
port = string.atoi(port)
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
s.connect(host, port)
|
||||
s.connect((host, port))
|
||||
s.send(selector + CRLF)
|
||||
s.shutdown(1)
|
||||
return s.makefile('rb')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue