parameters: (mf)
return_statement: return py_files, extensions
docstring: Return two lists: the first one contains the python files in the graph,
      the second the C extensions.
  
      :param mf: a :class:`modulegraph.modulegraph.ModuleGraph` instance
docstring_summary: Return two lists: the first one contains the python files in the graph,
      the second the C extensions.
docstring_tokens: Return two lists : the first one contains the python files in the graph the second the C extensions .
function: def parse_mf_results(mf):
      """
      Return two lists: the first one contains the python files in the graph,
      the second the C extensions.
  
      :param mf: a :class:`modulegraph.modulegraph.ModuleGraph` instance
      """
      #for name, imports in get_hidden_imports().items():
      #    if name in mf.modules.keys():
      #        for mod in imports:
      #            mf.import_hook(mod)
  
      # Retrieve modules from modulegraph
      py_files = []
      extensions = []
  
      for item in mf.flatten():
          # There may be __main__ modules (from mf.run_script), but
          # we don't need it in the zipfile we build.
          if item.identifier == "__main__":
              continue
          src = item.filename
          if src and src != '-':
              if isinstance(item, Script):
                  # Scripts are python files
                  py_files.append(item)
  
              elif isinstance(item, Extension):
                  extensions.append(item)
  
              else:
                  py_files.append(item)
  
      # sort on the file names, the output is nicer to read
      py_files.sort(key=lambda v: v.filename)
      extensions.sort(key=lambda v: v.filename)
      return py_files, extensions
function_tokens: def parse_mf_results ( mf ) : #for name, imports in get_hidden_imports().items(): #    if name in mf.modules.keys(): #        for mod in imports: #            mf.import_hook(mod) # Retrieve modules from modulegraph py_files = [ ] extensions = [ ] for item in mf . flatten ( ) : # There may be __main__ modules (from mf.run_script), but # we don't need it in the zipfile we build. if item . identifier == "__main__" : continue src = item . filename if src and src != '-' : if isinstance ( item , Script ) : # Scripts are python files py_files . append ( item ) elif isinstance ( item , Extension ) : extensions . append ( item ) else : py_files . append ( item ) # sort on the file names, the output is nicer to read py_files . sort ( key = lambda v : v . filename ) extensions . sort ( key = lambda v : v . filename ) return py_files , extensions