From c997f178ed2fe9a636c71be9e62d6b4f46901e1b Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sat, 13 Sep 2008 01:48:36 +0000 Subject: Subclass exception --- Demo/classes/bitvec.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- cgit v0.12