diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-08-25 15:38:41 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-08-25 15:38:41 (GMT) |
commit | a8d30d5d667b32b1b296c0926a0e80709bd6fab3 (patch) | |
tree | a68f728c1c466ea08e04c3dcf08e2cafa2746132 /Demo/sockets/finger.py | |
parent | 239f836c10425bb2514284dd4eb4fc63b206b587 (diff) | |
download | cpython-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-x | Demo/sockets/finger.py | 2 |
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) |