diff mercurial/branchmap.py @ 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 a369482e9649
children c34532365b38
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'