merge_wait_queue: use deque.clear()
authorZac Medico <zmedico@gentoo.org>
Sun, 8 May 2011 19:05:49 +0000 (12:05 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 8 May 2011 19:05:49 +0000 (12:05 -0700)
pym/_emerge/Scheduler.py

index fbf2d2dc0de9f7ce779f65bb219d583c4ff82e82..74d888a2e50cfee22d2d5d2612e40b9522c3e398 100644 (file)
@@ -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.