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 d50c37f..6bc9bcc 100755 --- a/Demo/sockets/telnet.py +++ b/Demo/sockets/telnet.py @@ -52,7 +52,7 @@ def main(): # try: s.connect((host, port)) - except error, msg: + except error as msg: sys.stderr.write('connect failed: ' + repr(msg) + '\n') sys.exit(1) # |