projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6689aa
)
_emerge_config: implement __iter__
author
Zac Medico
<zmedico@gentoo.org>
Mon, 10 Jun 2013 03:50:16 +0000
(20:50 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 10 Jun 2013 03:50:16 +0000
(20:50 -0700)
pym/_emerge/actions.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/actions.py
b/pym/_emerge/actions.py
index c7139d4c31b100c7f4398acb57585f037379225e..2ee2a5bb36592519b140c56368b72f38ce82a198 100644
(file)
--- 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