[Python-checkins] r66430 - python/trunk/Demo/classes/bitvec.py

andrew.kuchling python-checkins at python.org
Sat Sep 13 03:48:37 CEST 2008


Author: andrew.kuchling
Date: Sat Sep 13 03:48:36 2008
New Revision: 66430

Log:
Subclass exception

Modified:
   python/trunk/Demo/classes/bitvec.py

Modified: python/trunk/Demo/classes/bitvec.py
==============================================================================
--- python/trunk/Demo/classes/bitvec.py	(original)
+++ python/trunk/Demo/classes/bitvec.py	Sat Sep 13 03:48:36 2008
@@ -6,7 +6,8 @@
 
 import sys; rprt = sys.stderr.write #for debugging
 
-error = 'bitvec.error'
+class error(Exception):
+    pass
 
 
 def _check_value(value):


More information about the Python-checkins mailing list