def convert_flags(flags):
    os_flags = 0
    flag = 1
    while FSEvent.All + 1 < flag:
        if flags & flag:
            os_flags |= flags_map[flag]
        flag <<= 1
    return os_flags
dataset/ETHPy150Open shaurz/fsmonitor/fsmonitor/win32.py/convert_flags/swapped operands of `<`