summaryrefslogtreecommitdiffstats
path: root/Demo/sockets/finger.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-08-25 15:38:41 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-08-25 15:38:41 (GMT)
commita8d30d5d667b32b1b296c0926a0e80709bd6fab3 (patch)
treea68f728c1c466ea08e04c3dcf08e2cafa2746132 /Demo/sockets/finger.py
parent239f836c10425bb2514284dd4eb4fc63b206b587 (diff)
downloadcpython-a8d30d5d667b32b1b296c0926a0e80709bd6fab3.zip
cpython-a8d30d5d667b32b1b296c0926a0e80709bd6fab3.tar.gz
cpython-a8d30d5d667b32b1b296c0926a0e80709bd6fab3.tar.bz2
update demo scripts to use addr tuples for bind and connect
closes bug #111928
Diffstat (limited to 'Demo/sockets/finger.py')
-rwxr-xr-xDemo/sockets/finger.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sockets/finger.py b/Demo/sockets/finger.py
index b941d0e..0c2baed 100755
--- a/Demo/sockets/finger.py
+++ b/Demo/sockets/finger.py
@@ -23,7 +23,7 @@ FINGER_PORT = 79
#
def finger(host, args):
s = socket(AF_INET, SOCK_STREAM)
- s.connect(host, FINGER_PORT)
+ s.connect((host, FINGER_PORT))
s.send(args + '\n')
while 1:
buf = s.recv(1024)