Mercurial > hg-stable
changeset 32228:b98ee1a808bd
cleanup: remove useless re-raises of KeyboardInterrupt
KeyboardInterrupt is no longer a subclass of Exception since Python 2.5.
https://docs.python.org/2/whatsnew/2.5.html#pep-352-exceptions-as-new-style-classes
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 03 May 2017 11:16:55 +0900 |
parents | 2daba41c3b80 |
children | ac641a41f98d |
files | mercurial/branchmap.py mercurial/extensions.py |
diffstat | 2 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/branchmap.py Fri Aug 12 11:36:42 2016 +0900 +++ b/mercurial/branchmap.py Wed May 03 11:16:55 2017 +0900 @@ -67,8 +67,6 @@ partial.setdefault(label, []).append(node) if state == 'c': partial._closednodes.add(node) - except KeyboardInterrupt: - raise except Exception as inst: if repo.ui.debugflag: msg = 'invalid branchheads cache'