]> granicus.if.org Git - python/commitdiff
Derive exception classes from Exception
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 31 Mar 2002 13:59:18 +0000 (13:59 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 31 Mar 2002 13:59:18 +0000 (13:59 +0000)
Lib/tabnanny.py
Lib/xdrlib.py

index a0492e65c9038296ddadf9b0e0e7e23928fe0dce..7d2ca52dea8c3d8a1928873406c97274a275aae0 100755 (executable)
@@ -47,7 +47,7 @@ def main():
     for arg in args:
         check(arg)
 
-class NannyNag:
+class NannyNag(Exception):
     def __init__(self, lineno, msg, line):
         self.lineno, self.msg, self.line = lineno, msg, line
     def get_lineno(self):
index 7b02c41d01ecde064e17d72d7eed0055ab3650d3..270604799d4dc5c0b6dae7532cf09efcb979d79e 100644 (file)
@@ -13,7 +13,7 @@ except ImportError:
 __all__ = ["Error", "Packer", "Unpacker", "ConversionError"]
 
 # exceptions
-class Error:
+class Error(Exception):
     """Exception class for this module. Use:
 
     except xdrlib.Error, var: