From: Zac Medico Date: Sun, 8 May 2011 19:05:49 +0000 (-0700) Subject: merge_wait_queue: use deque.clear() X-Git-Tag: v2.1.9.48~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35b332ecbf426ec660477bf8d457f1e07c6c8ec7;p=portage.git merge_wait_queue: use deque.clear() --- diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index e71f4f626..14b89a852 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -304,7 +304,7 @@ class Scheduler(PollScheduler): if self._merge_wait_queue: for merge in self._merge_wait_queue: self._running_tasks.remove(merge.merge.pkg) - del self._merge_wait_queue[:] + self._merge_wait_queue.clear() for merge in self._task_queues.merge._task_queue: # Setup phases may be scheduled in this queue, but # we're only interested in the PackageMerge instances.