@classmethod<EOL>def get_args(cls, dist, header=None):  
if header is None:<EOL><INDENT>header = cls.get_header()<EOL><DEDENT>spec = str(dist.as_requirement())<EOL>for type_ in "<STR_LIT>", "<STR_LIT>":<EOL><INDENT>group = type_ + "<STR_LIT>"<EOL>for name, ep in dist.get_entry_map(group).items():<EOL><INDENT>if re.search(r"<STR_LIT>", name):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>script_text = TEMPLATE.format(<EOL>ep.module_name, ep.attrs[<NUM_LIT:0>], "<STR_LIT:.>".join(ep.attrs), spec, group, name<EOL>)<EOL>args = cls._get_script_args(type_, name, header, script_text)<EOL>for res in args:<EOL><INDENT>yield res<EOL><DEDENT><DEDENT><DEDENT>
Yield write_script() argument tuples for a distribution's
console_scripts and gui_scripts entry points.