Patchwork D2637: hghave: remove unused "as ex" in exception block

login
register
mail settings
Submitter phabricator
Date March 4, 2018, 4:38 p.m.
Message ID <9ac05934877a0484133ea770fbcc44b2@localhost.localdomain>
Download mbox | patch
Permalink /patch/28925/
State Not Applicable
Headers show

Comments

phabricator - March 4, 2018, 4:38 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1d06407d0ee9: hghave: remove unused &quot;as ex&quot; in exception block (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2637?vs=6543&id=6550

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

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS




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

Patch

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -715,5 +715,5 @@ 
         from mercurial import policy
         bdiff = policy.importmod('bdiff')
         return bdiff.xdiffblocks('', '') == [(0, 0, 0, 0)]
-    except (ImportError, AttributeError) as ex:
+    except (ImportError, AttributeError):
         return False