changeset 38122:f0fadc5bea21

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 19 May 2018 18:58:35 +0530
parents ca1cf9b3cce7
children a4942675de6b
files tests/test-parseindex.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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