diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-05-08 12:05:49 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-05-08 12:05:49 -0700 |
commit | d9f3f0bb9112b60b38fef6d9cd73eb4f0beb8950 (patch) | |
tree | 723df46d72274247c3f2d264e2c7014222869e88 | |
parent | 98b0a31bf0c3cc9dce6788eae4beee04ce354791 (diff) | |
download | portage-d9f3f0bb9112b60b38fef6d9cd73eb4f0beb8950.tar.gz portage-d9f3f0bb9112b60b38fef6d9cd73eb4f0beb8950.tar.bz2 portage-d9f3f0bb9112b60b38fef6d9cd73eb4f0beb8950.zip |
merge_wait_queue: use deque.clear()
-rw-r--r-- | pym/_emerge/Scheduler.py | 2 |
1 files changed, 1 insertions, 1 deletions
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. |