From: Zac Medico Date: Sun, 8 May 2011 19:05:49 +0000 (-0700) Subject: merge_wait_queue: use deque.clear() X-Git-Tag: v2.2.0_alpha32~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d9f3f0bb9112b60b38fef6d9cd73eb4f0beb8950;p=portage.git merge_wait_queue: use deque.clear() --- diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index fbf2d2dc0..74d888a2e 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.