def _remove(self, obj):
        """Python 2.4 compatibility."""
        for idx, item in enumerate(self._queue):
            if item == obj:
                del self._queue[idx]
                break
def _remove ( self , obj ) : for idx , item in enumerate ( self . _queue ) : if item == obj : del self . _queue [ idx ] break
Python 2.4 compatibility.