def pick_event(self):
        """Extracts an event (if available) from the Events queue.
        """
        logger.debug("checking event queue")
        event = snap7.snap7types.SrvEvent()
        ready = ctypes.c_int32()
        code = self.library.Srv_PickEvent(self.pointer, ctypes.byref(event),
                                          ctypes.byref(ready))
        check_error(code)
        if ready:
            logger.debug(event % "one event ready: %s")
            return event
        logger.debug("no events ready")
dataset/ETHPy150Open gijzelaerr/python-snap7/snap7/server.py/Server.pick_event/swapped operands of `%`