Update uses of string exceptions

This commit is contained in:
Andrew M. Kuchling 2008-09-13 01:57:25 +00:00
parent 0bef15846f
commit d9a9c1066c
4 changed files with 7 additions and 9 deletions

View file

@ -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: