summaryrefslogtreecommitdiffstats
path: root/Demo/classes
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-09-13 01:48:36 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2008-09-13 01:48:36 (GMT)
commitc997f178ed2fe9a636c71be9e62d6b4f46901e1b (patch)
treed80e727686509bf2d12e6bae8e69034e443fad4e /Demo/classes
parentdda0ce7285b86273821d8c61ef6179a0dd6e39f1 (diff)
downloadcpython-c997f178ed2fe9a636c71be9e62d6b4f46901e1b.zip
cpython-c997f178ed2fe9a636c71be9e62d6b4f46901e1b.tar.gz
cpython-c997f178ed2fe9a636c71be9e62d6b4f46901e1b.tar.bz2
Subclass exception
Diffstat (limited to 'Demo/classes')
-rwxr-xr-xDemo/classes/bitvec.py3
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):