projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29775f8
)
Implement ExtendedAtomDict.__len__().
author
Zac Medico
<zmedico@gentoo.org>
Sat, 7 Aug 2010 00:16:09 +0000
(17:16 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 7 Aug 2010 00:16:09 +0000
(17:16 -0700)
pym/portage/dep/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/dep/__init__.py
b/pym/portage/dep/__init__.py
index e0a0fffbdf12e84a1639e6d0ebbce9cb8305b8b9..0ee52218d8d98826fb91b2f451d25f19034782dd 100644
(file)
--- a/
pym/portage/dep/__init__.py
+++ b/
pym/portage/dep/__init__.py
@@
-794,6
+794,9
@@
class ExtendedAtomDict(portage.cache.mappings.MutableMapping):
if sys.hexversion >= 0x3000000:
keys = __iter__
+ def __len__(self):
+ return len(self._normal) + len(self._extended)
+
def setdefault(self, cp, default=None):
if "*" in cp:
return self._extended.setdefault(cp, default)