# HG changeset patch # User Pierre-Yves David # Date 2015-05-18 20:40:23 # Node ID 819cd397e306e36c48d977150502413da29f088f # Parent 0d0ed375fbdf5f97e1e9618eba73fcf5a9422a1a hook: drop dedicated catch for 'KeyboardInterrupt' This is no longer under 'Exception' in Python 2.6. diff --git a/mercurial/hook.py b/mercurial/hook.py --- a/mercurial/hook.py +++ b/mercurial/hook.py @@ -85,8 +85,6 @@ def _pythonhook(ui, repo, name, hname, f sys.stdout, sys.stderr, sys.stdin = ui.fout, ui.ferr, ui.fin r = obj(ui=ui, repo=repo, hooktype=name, **args) - except KeyboardInterrupt: - raise except Exception, exc: if isinstance(exc, util.Abort): ui.warn(_('error: %s hook failed: %s\n') %