def filemode(mode):
    """Convert a file's mode to a string of the form
       -rwxrwxrwx.
       Used by TarFile.list()
    """
    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)
Convert a file's mode to a string of the form
       -rwxrwxrwx.
       Used by TarFile.list()
    
product/gradle-plugin/src/main/python/pip/_vendor/distlib/_backport/tarfile.py