def remove(self, event):
        """remove(event)
Removes the event from the event queue. The event is an Event object as
returned by the add or getevents methods."""
        left = self.alarm(0)
        try:
            i = self.eventq.index(event)
        except __HOLE__:
            pass
        else:
            if i == 0: # currently scheduled event time
                ev = self.eventq.pop(0)
                self._adjust(ev.delay-left)
                self._runq()
                if self.eventq:
                    self.alarm(self.eventq[0].delay)
            else:
                del self.eventq[i]
                self.alarm(left)
dataset/ETHPy150Open kdart/pycopia/core/pycopia/scheduler.py/Scheduler.remove