summaryrefslogtreecommitdiff
path: root/Demo
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-30 17:37:22 +0000
committerCollin Winter <collinw@gmail.com>2007-08-30 17:37:22 +0000
commit3cd6537beb7df1831fcd7cfdc6d74616648feddf (patch)
treea19c8b2e6e5ef1499e2eb3998205deb9ec8c46cf /Demo
parentbf2604c0cc0d954c452d3077b1fa6b90db4df70e (diff)
downloadcpython-git-3cd6537beb7df1831fcd7cfdc6d74616648feddf.tar.gz
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 97921f24f8..227a5363a2 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: