Commit 75ae7e7d authored by Guido van Rossum's avatar Guido van Rossum

Fix for PR#74 -- use int() instead of eval() to extract the exponent.

parent 148ffbc8
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment