# HG changeset patch # User Augie Fackler # Date 2018-03-04 15:23:07 # Node ID 1d06407d0ee96d4063fbdeee2deff24a55a19b9b # Parent 19e859cad54ca8b1067f8848d5425d2b453c1a7b hghave: remove unused "as ex" in exception block I overlooked this when removing a debug print in another change. Differential Revision: https://phab.mercurial-scm.org/D2637 diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -715,5 +715,5 @@ def has_xdiff(): 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