# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1526736515 -19800 # Node ID f0fadc5bea21b2514de37469a3077d0acb34e506 # Parent ca1cf9b3cce7e96c268e60ad30af9f8b8f43fc95 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 diff -r ca1cf9b3cce7 -r f0fadc5bea21 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