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

login
register
mail settings
Submitter phabricator
Date March 4, 2018, 3:25 p.m.
Message ID <differential-rev-PHID-DREV-crv3s4va44novr54j2gu-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28915/
State Superseded
Headers show

Comments

phabricator - March 4, 2018, 3:25 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I overlooked this when removing a debug print in another change.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS




To: durin42, #hg-reviewers
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