diff contrib/hg-ssh @ 28047:863075fd4cd0

misc: use modern exception syntax This is fixing for 'legacy exception syntax; use "as" instead of ","' check-code rule. check-code has overlooked these, because files aren't recognized as one to be checked (this problem is fixed by subsequent patch).
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Wed, 10 Feb 2016 22:44:29 +0900
parents f68ded00cae5
children 77eaf9539499
line wrap: on
line diff
--- 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)