diff options
Diffstat (limited to 'Lib/fpformat.py')
-rw-r--r-- | Lib/fpformat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/fpformat.py b/Lib/fpformat.py index 485c39b..c196436 100644 --- a/Lib/fpformat.py +++ b/Lib/fpformat.py @@ -36,7 +36,7 @@ def extract(s): fraction is 0 or more digits expo is an integer""" res = decoder.match(s) - if res is None: raise NotANumber, s + if res is None: raise NotANumber(s) sign, intpart, fraction, exppart = res.group(1,2,3,4) if sign == '+': sign = '' if fraction: fraction = fraction[1:] |