Patchwork D3613: py3: use `except error as e` instead of `except error, e`

login
register
mail settings
Submitter phabricator
Date May 19, 2018, 7:40 p.m.
Message ID <8f95caf1d0dd10ff95def332f30de950@localhost.localdomain>
Download mbox | patch
Permalink /patch/31733/
State Not Applicable
Headers show

Comments

phabricator - May 19, 2018, 7:40 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf0fadc5bea21: py3: use `except error as e` instead of `except error, e` (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3613?vs=8784&id=8818

REVISION DETAIL
  https://phab.mercurial-scm.org/D3613

AFFECTED FILES
  tests/test-parseindex.t

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-parseindex.t b/tests/test-parseindex.t
--- a/tests/test-parseindex.t
+++ b/tests/test-parseindex.t
@@ -184,7 +184,7 @@ 
   >     try:
   >         f()
   >         print('uncaught buffer overflow?')
-  >     except ValueError, inst:
+  >     except ValueError as inst:
   >         print(inst)
   > EOF