summaryrefslogtreecommitdiffstats
path: root/Demo/sockets/telnet.py
diff options
context:
space:
mode:
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 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)
#