def get_devices():
    base = '/dev/input'
    for filename in os.listdir(base):
        if filename.startswith('event'):
            path = os.path.join(base, filename)
            if _devices in path:
                continue

            try:
                _devices[path] = Device(path)
            except OSError:
                pass 

    return _devices.values()
dataset/ETHPy150Open ardekantur/pyglet/experimental/input/linux.py/get_devices/swapped operands of `in`