parameters: (pathname)
docstring: Emit tuples of the form ("dir", dirname) and ("file", filename)
      of all directories and files contained within the 'pathname' directory.
  
      The returned pathnames omit a "./" prefix.
docstring_summary: Emit tuples of the form ("dir", dirname) and ("file", filename)
      of all directories and files contained within the 'pathname' directory.
docstring_tokens: Emit tuples of the form ( dir dirname ) and ( file filename ) of all directories and files contained within the pathname directory .
function: def _expand_curdir(pathname):
      """
      Emit tuples of the form ("dir", dirname) and ("file", filename)
      of all directories and files contained within the 'pathname' directory.
  
      The returned pathnames omit a "./" prefix.
      """
  
      res = _list_dir(pathname)
      if res is None:
          return
  
      (dirs, files) = res
  
      # Zero expansion
      yield ("dir", "")
  
      for f in files:
          yield ("file", f)
  
      for d in dirs:
          for x in _expand(d):
              yield x
function_tokens: def _expand_curdir ( pathname ) : res = _list_dir ( pathname ) if res is None : return ( dirs , files ) = res # Zero expansion yield ( "dir" , "" ) for f in files : yield ( "file" , f ) for d in dirs : for x in _expand ( d ) : yield x