changeset 7473:5185a24ce04e

exceptions should inherit the Exception class
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 06 Dec 2008 15:53:57 +0100
parents 9d457bb38de5
children b2cbced7bb50
files mercurial/util.py mercurial/util_win32.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Sat Dec 06 15:40:04 2008 +0100
+++ b/mercurial/util.py	Sat Dec 06 15:53:57 2008 +0100
@@ -705,7 +705,7 @@
         if cwd is not None and oldcwd != cwd:
             os.chdir(oldcwd)
 
-class SignatureError:
+class SignatureError(Exception):
     pass
 
 def checksignature(func):
--- a/mercurial/util_win32.py	Sat Dec 06 15:40:04 2008 +0100
+++ b/mercurial/util_win32.py	Sat Dec 06 15:53:57 2008 +0100
@@ -19,7 +19,7 @@
 import util
 from win32com.shell import shell,shellcon
 
-class WinError:
+class WinError(Exception):
     winerror_map = {
         winerror.ERROR_ACCESS_DENIED: errno.EACCES,
         winerror.ERROR_ACCOUNT_DISABLED: errno.EACCES,