summaryrefslogtreecommitdiff
path: root/setuptools/command
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
commitbffda69d4419e5f1d2665a74a0e6830d302dcec0 (patch)
tree6641b8dc7fc8c6a0a521582ae18aea77670b20bd /setuptools/command
parent429eed215479c1044254b0f6ac03abbd767a4dea (diff)
downloadpython-setuptools-bitbucket-bffda69d4419e5f1d2665a74a0e6830d302dcec0.tar.gz
Extract variable
Diffstat (limited to 'setuptools/command')
-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