aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-03-31 13:59:18 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2002-03-31 13:59:18 +0000
commitf74e46cf473c3c2197c073cccc3ae4446c9b03a1 (patch)
tree4f1f1f14cb10bf7e8784e212ae552f9b3aad37ea /Lib/tabnanny.py
parentStop using string exceptions (diff)
downloadcpython-f74e46cf473c3c2197c073cccc3ae4446c9b03a1.tar.gz
cpython-f74e46cf473c3c2197c073cccc3ae4446c9b03a1.tar.bz2
cpython-f74e46cf473c3c2197c073cccc3ae4446c9b03a1.zip
Derive exception classes from Exception
Diffstat (limited to 'Lib/tabnanny.py')
-rwxr-xr-xLib/tabnanny.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py
index a0492e65c90..7d2ca52dea8 100755
--- a/Lib/tabnanny.py
+++ b/Lib/tabnanny.py
@@ -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):