def open(self, window=None, exclusive=False):
        super(EvdevDevice, self).open(window, exclusive)

        try:
            self._fileno = os.open(self._filename, os.O_RDONLY | os.O_NONBLOCK)
        except __HOLE__, e:
            raise DeviceOpenException(e)

        pyglet.app.platform_event_loop._select_devices.add(self)
dataset/ETHPy150Open ardekantur/pyglet/pyglet/input/evdev.py/EvdevDevice.open