FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix a lingering string exception. · python/cpython@3cd6537 · GitHub

Repository navigation

Commit 3cd6537

Browse files
committed
Fix a lingering string exception.
1 parent bf2604c commit 3cd6537

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Demo/classes/bitvec.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def _compute_len(param):
2020
mant, l = math.frexp(float(param))
2121
bitmask = 1 << l
2222
if bitmask <= param:
23-
raise 'FATAL', '(param, l) = %r' % ((param, l),)
23+
raise ValueError('(param, l) = %r' % ((param, l),))
2424
while l:
2525
bitmask = bitmask >> 1
2626
if param & bitmask:

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL