summaryrefslogtreecommitdiffstats
path: root/Demo/threads/telnet.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/threads/telnet.py')
-rw-r--r--Demo/threads/telnet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/threads/telnet.py b/Demo/threads/telnet.py
index 707a353..09f3bd9 100644
--- a/Demo/threads/telnet.py
+++ b/Demo/threads/telnet.py
@@ -56,7 +56,7 @@ def main():
#
try:
s.connect((host, port))
- except error, msg:
+ except error as msg:
sys.stderr.write('connect failed: %r\n' % (msg,))
sys.exit(1)
#