Skip to content

Commit

Permalink
2to3: apply execfile fixer results.
Browse files Browse the repository at this point in the history
The execfile command is gone in Python 3. The fix is to read the file,
then compile and exec the result.
  • Loading branch information
charris committed Feb 28, 2013
1 parent 0934653 commit 36e979c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setupegg.py
Expand Up @@ -21,4 +21,4 @@
setupfile = imp.load_source('setupfile', 'setup.py') setupfile = imp.load_source('setupfile', 'setup.py')
setupfile.setup_package() setupfile.setup_package()
else: else:
execfile('setup.py') exec(compile(open('setup.py').read(), 'setup.py', 'exec'))

0 comments on commit 36e979c

Please sign in to comment.