Permalink
Browse files

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.
  • Loading branch information...
1 parent 0934653 commit 36e979c465150b1846f37f1811b86f63f9d1e085 @charris charris committed Feb 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 setupegg.py
View
@@ -21,4 +21,4 @@
setupfile = imp.load_source('setupfile', 'setup.py')
setupfile.setup_package()
else:
- execfile('setup.py')
+ exec(compile(open('setup.py').read(), 'setup.py', 'exec'))

0 comments on commit 36e979c

Please sign in to comment.