aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-12-01 22:00:45 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-12-01 22:00:45 -0500
commit2086ae7b381287872add8fe9a91b74498d501679 (patch)
tree753187331c2fcf14a3c7fd389383a12349c4461c /setuptools/command/easy_install.py
parent98ea00965bed70ccf57eb58394d15739fb7372ab (diff)
downloadexternal_python_setuptools-2086ae7b381287872add8fe9a91b74498d501679.tar.gz
external_python_setuptools-2086ae7b381287872add8fe9a91b74498d501679.tar.bz2
external_python_setuptools-2086ae7b381287872add8fe9a91b74498d501679.zip
Extract variable
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 547a8842..79f068b1 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -772,8 +772,8 @@ class easy_install(Command):
is_script = is_python_script(script_text, script_name)
if is_script:
- script_text = (ScriptWriter.get_header(script_text) +
- self._load_template(dev_path) % locals())
+ body = self._load_template(dev_path) % locals()
+ script_text = ScriptWriter.get_header(script_text) + body
self.write_script(script_name, _to_ascii(script_text), 'b')
@staticmethod