diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2008-09-13 01:48:36 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2008-09-13 01:48:36 (GMT) |
commit | c997f178ed2fe9a636c71be9e62d6b4f46901e1b (patch) | |
tree | d80e727686509bf2d12e6bae8e69034e443fad4e /Demo | |
parent | dda0ce7285b86273821d8c61ef6179a0dd6e39f1 (diff) | |
download | cpython-c997f178ed2fe9a636c71be9e62d6b4f46901e1b.zip cpython-c997f178ed2fe9a636c71be9e62d6b4f46901e1b.tar.gz cpython-c997f178ed2fe9a636c71be9e62d6b4f46901e1b.tar.bz2 |
Subclass exception
Diffstat (limited to 'Demo')
-rwxr-xr-x | Demo/classes/bitvec.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Demo/classes/bitvec.py b/Demo/classes/bitvec.py index 2894a56..495a837 100755 --- a/Demo/classes/bitvec.py +++ b/Demo/classes/bitvec.py @@ -6,7 +6,8 @@ import sys; rprt = sys.stderr.write #for debugging -error = 'bitvec.error' +class error(Exception): + pass def _check_value(value): |