diff --git a/Lib/fpformat.py b/Lib/fpformat.py index a9c405ee423..74f5698d1bf 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