mirror of
https://github.com/python/cpython.git
synced 2025-09-17 06:06:25 +00:00
Update uses of string exceptions
This commit is contained in:
parent
0bef15846f
commit
d9a9c1066c
4 changed files with 7 additions and 9 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue