aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-07-05 12:14:25 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-07-05 12:14:25 -0400
commit879119ec99fdadf958f25e4b17755ebe2d3f8907 (patch)
treec36639852f6cae56e2fee2e17de7339268ed5182
parente88bff90bfb1d1ac9ecfcf31eeae11faf50cf936 (diff)
downloadexternal_python_setuptools-879119ec99fdadf958f25e4b17755ebe2d3f8907.tar.gz
external_python_setuptools-879119ec99fdadf958f25e4b17755ebe2d3f8907.tar.bz2
external_python_setuptools-879119ec99fdadf958f25e4b17755ebe2d3f8907.zip
Use Python 3 syntax in 'script (dev).tmpl', as Python 2.6+ supports this syntax5.4
-rw-r--r--setuptools/script (dev).tmpl5
1 files changed, 1 insertions, 4 deletions
diff --git a/setuptools/script (dev).tmpl b/setuptools/script (dev).tmpl
index 6b1bef5b..d58b1bb5 100644
--- a/setuptools/script (dev).tmpl
+++ b/setuptools/script (dev).tmpl
@@ -2,7 +2,4 @@
__requires__ = %(spec)r
__import__('pkg_resources').require(%(spec)r)
__file__ = %(dev_path)r
-if __import__('sys').version_info < (3, 0):
- execfile(__file__)
-else:
- exec(compile(open(__file__).read(), __file__, 'exec'))
+exec(compile(open(__file__).read(), __file__, 'exec'))