diff options
-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 a9c405e..74f5698 100644 --- a/Lib/fpformat.py +++ b/Lib/fpformat.py @@ -38,7 +38,7 @@ def extract(s): sign, intpart, fraction, exppart = res.group(1,2,3,4) if sign == '+': sign = '' if fraction: fraction = fraction[1:] - if exppart: expo = eval(exppart[1:]) + if exppart: expo = int(exppart[1:]) else: expo = 0 return sign, intpart, fraction, expo |