D2662: hghave: do not assign "ex" to a variable (pyflakes)
spectral (Kyle Lippincott)
phabricator at mercurial-scm.org
Sun Mar 4 18:24:33 UTC 2018
spectral created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2662
AFFECTED FILES
tests/hghave.py
CHANGE DETAILS
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:
- return False
+ except (ImportError, AttributeError):
+ return False
To: spectral, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list