diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2008-09-13 01:57:25 +0000 |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2008-09-13 01:57:25 +0000 |
commit | d9a9c1066c64900a902f5a70b132880e29749ecc (patch) | |
tree | 3a019489694ff69f0a94003e0eea5952020aeb6c /Demo/classes | |
parent | 0bef15846fb3a3a0c2c277ee7bc22ace719a47b6 (diff) | |
download | cpython-git-d9a9c1066c64900a902f5a70b132880e29749ecc.tar.gz |
Update uses of string exceptions
Diffstat (limited to 'Demo/classes')
-rwxr-xr-x | Demo/classes/bitvec.py | 2 |
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: |