summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-02-28 10:23:42 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-02-28 10:23:42 -0700
commit36e979c465150b1846f37f1811b86f63f9d1e085 (patch)
tree2fa8a54d425a7cfafc28204864e1796a4b34dc95
parent0934653e151969f6912c911b5113306bd5f450f1 (diff)
downloadnumpy-36e979c465150b1846f37f1811b86f63f9d1e085.tar.gz
2to3: apply `execfile` fixer results.
The execfile command is gone in Python 3. The fix is to read the file, then compile and exec the result.
-rwxr-xr-xsetupegg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setupegg.py b/setupegg.py
index 3ed1e0b0b..82b35fd69 100755
--- a/setupegg.py
+++ b/setupegg.py
@@ -21,4 +21,4 @@ if sys.version_info[0] >= 3:
setupfile = imp.load_source('setupfile', 'setup.py')
setupfile.setup_package()
else:
- execfile('setup.py')
+ exec(compile(open('setup.py').read(), 'setup.py', 'exec'))