summaryrefslogtreecommitdiffstats
path: root/Lib/gopherlib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-03-28 21:45:46 (GMT)
committerGuido van Rossum <guido@python.org>2000-03-28 21:45:46 (GMT)
commit93a7c0fe6b2186448ebe35a5af0ac3880d8f16fc (patch)
tree7e53b81f5f272f55a86e62234e06e482123f50fe /Lib/gopherlib.py
parent1916b35f5864b2bfe5e2687b7db4fc0c329c9402 (diff)
downloadcpython-93a7c0fe6b2186448ebe35a5af0ac3880d8f16fc.zip
cpython-93a7c0fe6b2186448ebe35a5af0ac3880d8f16fc.tar.gz
cpython-93a7c0fe6b2186448ebe35a5af0ac3880d8f16fc.tar.bz2
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...
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')