(self)
Drop expired items from queue.
Drop expired items from queue.
Drop expired items from queue .
def _check_expired(self):
        """Drop expired items from queue."""
        counts = 0
        try:
            while self._deque[0][1] <= datetime.datetime.now():
                popped = self._deque.popleft()
                self._balloon_popped = (popped[2] is None)
        except (IndexError, TypeError):
            pass
def _check_expired ( self ) : counts = 0 try : while self . _deque [ 0 ] [ 1 ] <= datetime . datetime . now ( ) : popped = self . _deque . popleft ( ) self . _balloon_popped = ( popped [ 2 ] is None ) except ( IndexError , TypeError ) : pass