From d9f3f0bb9112b60b38fef6d9cd73eb4f0beb8950 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 8 May 2011 12:05:49 -0700 Subject: [PATCH] merge_wait_queue: use deque.clear() --- pym/_emerge/Scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.26.2