summaryrefslogtreecommitdiffstats
path: root/Lib/gopherlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/gopherlib.py')
-rw-r--r--Lib/gopherlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/gopherlib.py b/Lib/gopherlib.py
index d805f15..6965fbd 100644
--- a/Lib/gopherlib.py
+++ b/Lib/gopherlib.py
@@ -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')