diff Lib/gopherlib.py @ 12081:dc8aa951def8 legacy-trunk

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...
author Guido van Rossum <guido@python.org>
date Tue, 28 Mar 2000 21:45:46 +0000
parents b6f52c1ef6da
children 46920b60cd33
line wrap: on
line diff
--- a/Lib/gopherlib.py	Tue Mar 28 21:42:38 2000 +0000
+++ b/Lib/gopherlib.py	Tue Mar 28 21:45:46 2000 +0000
@@ -66,7 +66,7 @@
     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')