summaryrefslogtreecommitdiffstats
path: root/Demo/sockets/telnet.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/telnet.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/telnet.py')
-rwxr-xr-xDemo/sockets/telnet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sockets/telnet.py b/Demo/sockets/telnet.py
index e83ce55..ee7c43b 100755
--- a/Demo/sockets/telnet.py
+++ b/Demo/sockets/telnet.py
@@ -51,7 +51,7 @@ def main():
s = socket(AF_INET, SOCK_STREAM)
#
try:
- s.connect(host, port)
+ s.connect((host, port))
except error, msg:
sys.stderr.write('connect failed: ' + `msg` + '\n')
sys.exit(1)