def _enqueue_event(self, event):
    # Must be called with _work_ready_condition acquired.
    if self._queue:
      old_next_event_eta = self._queue[0].eta
    else:
      old_next_event_eta = event.eta + 1
    heapq.heappush(self._queue, event)
    if old_next_event_eta < event.eta:
      self._work_ready_condition.notify()
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/scheduled_executor.py/ScheduledExecutor._enqueue_event/swapped operands of `<`