summaryrefslogtreecommitdiffstats
path: root/pym/portage/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/__init__.py')
-rw-r--r--pym/portage/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index b5461fdb4..71fa0c6d5 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -433,6 +433,9 @@ class digraph(object):
del self.nodes[child][1][parent]
del self.nodes[parent][0][child]
+ def __iter__(self):
+ return iter(self.order)
+
def contains(self, node):
"""Checks if the digraph contains mynode"""
return node in self.nodes