projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7668620
)
Implement UserConfigKlass.__iter__() so that tests pass.
author
Zac Medico
<zmedico@gentoo.org>
Thu, 21 Jun 2007 12:12:01 +0000
(12:12 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 21 Jun 2007 12:12:01 +0000
(12:12 -0000)
svn path=/main/trunk/; revision=6914
pym/portage/env/config.py
patch
|
blob
|
history
diff --git
a/pym/portage/env/config.py
b/pym/portage/env/config.py
index 192d1085293d6980103921fcc60eec90ca83a199..a354dcf7de6b66198db5469c7f7419600b8e360e 100644
(file)
--- a/
pym/portage/env/config.py
+++ b/
pym/portage/env/config.py
@@
-30,6
+30,9
@@
class UserConfigKlass(UserDict,object):
self.data, self.errors = self._loader.load()
+ def __iter__(self):
+ return iter(self.data)
+
class PackageKeywordsFile(UserConfigKlass):
"""
Inherits from UserConfigKlass; implements a file-based backend.