diff mercurial/verify.py @ 27450:467338e690f8

verify: remove unreachable code to reraise KeyboardInterrupt KeyboardInterrupt should never be caught as it doesn't inherit Exception in Python 2.5 or later. And if it was, "interrupted" would be printed twice. https://docs.python.org/2.7/library/exceptions.html#exception-hierarchy
author Yuya Nishihara <yuya@tcha.org>
date Sun, 20 Dec 2015 18:38:21 +0900
parents f4f2179077cb
children 8462d7f2c4fe
line wrap: on
line diff
--- a/mercurial/verify.py	Sun Dec 20 16:34:54 2015 -0600
+++ b/mercurial/verify.py	Sun Dec 20 18:38:21 2015 +0900
@@ -76,9 +76,6 @@
         self.errors[0] += 1
 
     def exc(self, linkrev, msg, inst, filename=None):
-        if isinstance(inst, KeyboardInterrupt):
-            self.ui.warn(_("interrupted"))
-            raise
         if not str(inst):
             inst = repr(inst)
         self.err(linkrev, "%s: %s" % (msg, inst), filename)