From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 79BC01381F3 for ; Mon, 10 Jun 2013 03:50:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37C84E0801; Mon, 10 Jun 2013 03:50:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BE336E0801 for ; Mon, 10 Jun 2013 03:50:37 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ACD3833E20B for ; Mon, 10 Jun 2013 03:50:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 4C0B4E468F for ; Mon, 10 Jun 2013 03:50:35 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1370836216.9ec23b6212ed3b930c1bb5133740de5c15c5b978.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/actions.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 9ec23b6212ed3b930c1bb5133740de5c15c5b978 X-VCS-Branch: master Date: Mon, 10 Jun 2013 03:50:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 34427704-da77-49f8-833f-2fb90fddec21 X-Archives-Hash: d9eb76c515e85b2922ef00616758577e commit: 9ec23b6212ed3b930c1bb5133740de5c15c5b978 Author: Zac Medico gentoo org> AuthorDate: Mon Jun 10 03:50:16 2013 +0000 Commit: Zac Medico gentoo org> CommitDate: Mon Jun 10 03:50:16 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=9ec23b62 _emerge_config: implement __iter__ --- pym/_emerge/actions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index c7139d4..2ee2a5b 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -3134,6 +3134,11 @@ class _emerge_config(SlotObject): __slots__ = ('action', 'args', 'mtimedb', 'opts', 'settings', 'trees') # Support unpack as tuple, for load_emerge_config backward compatibility. + def __iter__(self): + yield self.settings + yield self.trees + yield self.mtimedb + def __getitem__(self, index): if index == 0: return self.settings