parameters: (cls, type_, name, header, script_text)
docstring: For Windows, add a .py extension
docstring_summary: For Windows, add a .py extension
docstring_tokens: For Windows add a . py extension
function: def _get_script_args(cls, type_, name, header, script_text):
          "For Windows, add a .py extension"
          ext = dict(console='.pya', gui='.pyw')[type_]
          if ext not in os.environ['PATHEXT'].lower().split(';'):
              msg = (
                  "{ext} not listed in PATHEXT; scripts will not be "
                  "recognized as executables."
              ).format(**locals())
              warnings.warn(msg, UserWarning)
          old = ['.pya', '.py', '-script.py', '.pyc', '.pyo', '.pyw', '.exe']
          old.remove(ext)
          header = cls._adjust_header(type_, header)
          blockers = [name + x for x in old]
          yield name + ext, header + script_text, 't', blockers
function_tokens: def _get_script_args ( cls , type_ , name , header , script_text ) : ext = dict ( console = '.pya' , gui = '.pyw' ) [ type_ ] if ext not in os . environ [ 'PATHEXT' ] . lower ( ) . split ( ';' ) : msg = ( "{ext} not listed in PATHEXT; scripts will not be " "recognized as executables." ) . format ( * * locals ( ) ) warnings . warn ( msg , UserWarning ) old = [ '.pya' , '.py' , '-script.py' , '.pyc' , '.pyo' , '.pyw' , '.exe' ] old . remove ( ext ) header = cls . _adjust_header ( type_ , header ) blockers = [ name + x for x in old ] yield name + ext , header + script_text , 't' , blockers