py3: use `except error as e` instead of `except error, e`
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 19 May 2018 18:58:35 +0530
changeset 38089 f0fadc5bea21
parent 38088 ca1cf9b3cce7
child 38090 a4942675de6b
py3: use `except error as e` instead of `except error, e` The latter throws SyntaxError on Python 3. Differential Revision: https://phab.mercurial-scm.org/D3613
tests/test-parseindex.t
--- a/tests/test-parseindex.t	Sat May 19 18:56:00 2018 +0530
+++ b/tests/test-parseindex.t	Sat May 19 18:58:35 2018 +0530
@@ -184,7 +184,7 @@
   >     try:
   >         f()
   >         print('uncaught buffer overflow?')
-  >     except ValueError, inst:
+  >     except ValueError as inst:
   >         print(inst)
   > EOF