contrib/hg-ssh
changeset 28047 863075fd4cd0
parent 28045 f68ded00cae5
child 32050 77eaf9539499
--- a/contrib/hg-ssh	Wed Feb 10 22:44:28 2016 +0900
+++ b/contrib/hg-ssh	Wed Feb 10 22:44:29 2016 +0900
@@ -52,7 +52,7 @@
     orig_cmd = os.getenv('SSH_ORIGINAL_COMMAND', '?')
     try:
         cmdargv = shlex.split(orig_cmd)
-    except ValueError, e:
+    except ValueError as e:
         sys.stderr.write('Illegal command "%s": %s\n' % (orig_cmd, e))
         sys.exit(255)