[Python-3000-checkins] r57736 - python/branches/py3k/Demo/classes/bitvec.py

collin.winter python-3000-checkins at python.org
Thu Aug 30 19:37:22 CEST 2007


Author: collin.winter
Date: Thu Aug 30 19:37:22 2007
New Revision: 57736

Modified:
   python/branches/py3k/Demo/classes/bitvec.py
Log:
Fix a lingering string exception.

Modified: python/branches/py3k/Demo/classes/bitvec.py
==============================================================================
--- python/branches/py3k/Demo/classes/bitvec.py	(original)
+++ python/branches/py3k/Demo/classes/bitvec.py	Thu Aug 30 19:37:22 2007
@@ -20,7 +20,7 @@
     mant, l = math.frexp(float(param))
     bitmask = 1 << l
     if bitmask <= param:
-        raise 'FATAL', '(param, l) = %r' % ((param, l),)
+        raise ValueError('(param, l) = %r' % ((param, l),))
     while l:
         bitmask = bitmask >> 1
         if param & bitmask:


More information about the Python-3000-checkins mailing list