def humanReadableMask(mask):
    """
    Auxiliary function that converts a hexadecimal mask into a series
    of human readable flags.
    """
    s = []
    for k, v in _FLAG_TO_HUMAN:
        if k & mask:
            s.append(v)
    return s

    Auxiliary function that converts a hexadecimal mask into a series
    of human readable flags.
    
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/inotify.py