summaryrefslogtreecommitdiff
path: root/Demo/classes
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-09-13 01:57:25 +0000
committerAndrew M. Kuchling <amk@amk.ca>2008-09-13 01:57:25 +0000
commitd9a9c1066c64900a902f5a70b132880e29749ecc (patch)
tree3a019489694ff69f0a94003e0eea5952020aeb6c /Demo/classes
parent0bef15846fb3a3a0c2c277ee7bc22ace719a47b6 (diff)
downloadcpython-git-d9a9c1066c64900a902f5a70b132880e29749ecc.tar.gz
Update uses of string exceptions
Diffstat (limited to 'Demo/classes')
-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 495a83727a..c0eafa0ddc 100755
--- a/Demo/classes/bitvec.py
+++ b/Demo/classes/bitvec.py
@@ -21,7 +21,7 @@ def _compute_len(param):
mant, l = math.frexp(float(param))
bitmask = 1L << l
if bitmask <= param:
- raise 'FATAL', '(param, l) = %r' % ((param, l),)
+ raise RuntimeError('(param, l) = %r' % ((param, l),))
while l:
bitmask = bitmask >> 1
if param & bitmask: