# HG changeset patch # User Pierre-Yves David # Date 1431981623 18000 # Node ID 819cd397e306e36c48d977150502413da29f088f # Parent 0d0ed375fbdf5f97e1e9618eba73fcf5a9422a1a hook: drop dedicated catch for 'KeyboardInterrupt' This is no longer under 'Exception' in Python 2.6. diff -r 0d0ed375fbdf -r 819cd397e306 mercurial/hook.py --- a/mercurial/hook.py Mon May 18 15:38:24 2015 -0500 +++ b/mercurial/hook.py Mon May 18 15:40:23 2015 -0500 @@ -85,8 +85,6 @@ 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') %