[Python-checkins] distutils2: Remove evil eval
tarek.ziade
python-checkins at python.org
Sun Jul 4 11:48:40 CEST 2010
tarek.ziade pushed b338176f6c00 to distutils2:
http://hg.python.org/distutils2/rev/b338176f6c00
changeset: 340:b338176f6c00
user: ?ric Araujo <merwok at netwok.org>
date: Thu Jul 01 19:29:19 2010 +0200
summary: Remove evil eval
files: src/setup.py
diff --git a/src/setup.py b/src/setup.py
--- a/src/setup.py
+++ b/src/setup.py
@@ -151,7 +151,7 @@
for line in incfile:
m = openssl_ver_re.match(line)
if m:
- openssl_ver = eval(m.group(1))
+ openssl_ver = int(m.group(1), 16)
break
except IOError:
pass
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list