Commit d7cb597b authored by Jason R. Coombs's avatar Jason R. Coombs

No need to pass the writer - just invoke it directly.

parent 4108a12a
...@@ -1906,16 +1906,16 @@ class ScriptWriter(object): ...@@ -1906,16 +1906,16 @@ class ScriptWriter(object):
""" """
writer = cls.get_writer(wininst) writer = cls.get_writer(wininst)
header = get_script_header("", executable, wininst) header = get_script_header("", executable, wininst)
return cls._gen_args(dist, writer, header) return writer._gen_args(dist, header)
@classmethod @classmethod
def _gen_args(cls, dist, writer, header): def _gen_args(cls, dist, header):
spec = str(dist.as_requirement()) spec = str(dist.as_requirement())
for type_ in 'console', 'gui': for type_ in 'console', 'gui':
group = type_ + '_scripts' group = type_ + '_scripts'
for name, ep in dist.get_entry_map(group).items(): for name, ep in dist.get_entry_map(group).items():
script_text = writer.template % locals() script_text = cls.template % locals()
for res in writer._get_script_args(type_, name, header, for res in cls._get_script_args(type_, name, header,
script_text): script_text):
yield res yield res
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment