Mercurial > public > mercurial-scm > hg-stable
diff mercurial/error.py @ 7644:182b7114d35a
error: move SignalInterrupt
now derived from KeyboardInterrupt to simplify catches
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 Jan 2009 11:48:05 -0600 |
parents | 9a1ea6587557 |
children | e62a456b8dc5 |
line wrap: on
line diff
--- a/mercurial/error.py Mon Jan 12 11:39:38 2009 -0600 +++ b/mercurial/error.py Mon Jan 12 11:48:05 2009 -0600 @@ -56,3 +56,6 @@ class AmbiguousCommand(Exception): """Exception raised if command shortcut matches more than one command.""" +# derived from KeyboardInterrupt to simplify some breakout code +class SignalInterrupt(KeyboardInterrupt): + """Exception raised on SIGTERM and SIGHUP."""