commit | f74e46cf473c3c2197c073cccc3ae4446c9b03a1 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Sun Mar 31 13:59:18 2002 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Sun Mar 31 13:59:18 2002 +0000 |
tree | 4f1f1f14cb10bf7e8784e212ae552f9b3aad37ea | |
parent | 27a353020bef4318896bf16f558ed7e2af76e40a [diff] [blame] |
Derive exception classes from Exception
diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py index a0492e6..7d2ca52 100755 --- a/Lib/tabnanny.py +++ b/Lib/tabnanny.py
@@ -47,7 +47,7 @@ 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):