parameters: (mode)
return_statement: return "".join(perm)
docstring: Convert a file's mode to a string of the form '-rwxrwxrwx'.
docstring_summary: Convert a file's mode to a string of the form '-rwxrwxrwx'.
docstring_tokens: Convert a file s mode to a string of the form - rwxrwxrwx .
function: def filemode(mode):
      """Convert a file's mode to a string of the form '-rwxrwxrwx'."""
      perm = []
      for table in _filemode_table:
          for bit, char in table:
              if mode & bit == bit:
                  perm.append(char)
                  break
          else:
              perm.append("-")
      return "".join(perm)
function_tokens: def filemode ( mode ) : perm = [ ] for table in _filemode_table : for bit , char in table : if mode & bit == bit : perm . append ( char ) break else : perm . append ( "-" ) return "" . join ( perm )