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:
Guido van Rossum 2000-03-28 21:45:46 +00:00
parent 1916b35f58
commit 93a7c0fe6b
7 changed files with 9 additions and 9 deletions

View file

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