<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _remove(self, obj):
 """Python 2.4 compatibility."""

        for idx, item in enumerate(self._queue):
            if item == obj:
                del self._queue[idx]
                break