summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-30 17:37:22 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-30 17:37:22 (GMT)
commit3cd6537beb7df1831fcd7cfdc6d74616648feddf (patch)
treea19c8b2e6e5ef1499e2eb3998205deb9ec8c46cf /Demo
parentbf2604c0cc0d954c452d3077b1fa6b90db4df70e (diff)
downloadcpython-3cd6537beb7df1831fcd7cfdc6d74616648feddf.zip
cpython-3cd6537beb7df1831fcd7cfdc6d74616648feddf.tar.gz
cpython-3cd6537beb7df1831fcd7cfdc6d74616648feddf.tar.bz2
Fix a lingering string exception.
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/classes/bitvec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/classes/bitvec.py b/Demo/classes/bitvec.py
index 97921f2..227a536 100755
--- a/Demo/classes/bitvec.py
+++ b/Demo/classes/bitvec.py
@@ -20,7 +20,7 @@ def _compute_len(param):
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: