def S_IFMT(mode):
    "Return the portion of the file's mode that describes the\n    file type.\n    "
    return (mode & 61440)
Return the portion of the file's mode that describes the
file type.
def S_IFMT(mode):
    "Return the portion of the file's mode that describes the\n    file type.\n    "
    return (mode & 61440)