diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 15:56:19 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 15:56:19 -0500 |
| commit | d7cb597b9697e11d3f13e46d6af787ffc82571d5 (patch) | |
| tree | 78a7275459f2f98110ce1a19be37de7750a6c86f /setuptools/command | |
| parent | 4108a12a41f3c413f2ea5e8ede3075d67067cba5 (diff) | |
| download | python-setuptools-git-d7cb597b9697e11d3f13e46d6af787ffc82571d5.tar.gz | |
No need to pass the writer - just invoke it directly.
Diffstat (limited to 'setuptools/command')
| -rwxr-xr-x | setuptools/command/easy_install.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 4e05d670..d5d518de 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1906,16 +1906,16 @@ class ScriptWriter(object): """ writer = cls.get_writer(wininst) header = get_script_header("", executable, wininst) - return cls._gen_args(dist, writer, header) + return writer._gen_args(dist, header) @classmethod - def _gen_args(cls, dist, writer, header): + def _gen_args(cls, dist, header): spec = str(dist.as_requirement()) for type_ in 'console', 'gui': group = type_ + '_scripts' for name, ep in dist.get_entry_map(group).items(): - script_text = writer.template % locals() - for res in writer._get_script_args(type_, name, header, + script_text = cls.template % locals() + for res in cls._get_script_args(type_, name, header, script_text): yield res |
