diff options
Diffstat (limited to 'Demo/sockets/telnet.py')
-rwxr-xr-x | Demo/sockets/telnet.py | 2 |
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) |