projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a32038f
)
Implement ExtendedAtomDict.__iter__().
author
Zac Medico
<zmedico@gentoo.org>
Sat, 7 Aug 2010 00:01:12 +0000
(17:01 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 7 Aug 2010 00:01:12 +0000
(17:01 -0700)
pym/portage/dep/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/dep/__init__.py
b/pym/portage/dep/__init__.py
index 0ba96bdec9b70a698fef886774d40e815ccdab61..e0a0fffbdf12e84a1639e6d0ebbce9cb8305b8b9 100644
(file)
--- a/
pym/portage/dep/__init__.py
+++ b/
pym/portage/dep/__init__.py
@@
-785,6
+785,15
@@
class ExtendedAtomDict(portage.cache.mappings.MutableMapping):
self._normal = {}
self._value_class = value_class
+ def __iter__(self):
+ for k in self._normal:
+ yield k
+ for k in self._extended:
+ yield k
+
+ if sys.hexversion >= 0x3000000:
+ keys = __iter__
+
def setdefault(self, cp, default=None):
if "*" in cp:
return self._extended.setdefault(cp, default)