diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-15 20:06:11 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-15 20:06:11 -0700 |
commit | 3158c7762983e54bf83061d5fd6f3b656fb0c10a (patch) | |
tree | af010695e4f94469c92af326825d6fa8cc75b9e9 /pym/portage | |
parent | 91d294b7b78fa809dd4e56f51bfb53f4479fe578 (diff) | |
download | portage-3158c7762983e54bf83061d5fd6f3b656fb0c10a.tar.gz portage-3158c7762983e54bf83061d5fd6f3b656fb0c10a.tar.bz2 portage-3158c7762983e54bf83061d5fd6f3b656fb0c10a.zip |
Implement ExtendedAtomDict.iteritems(), so that it doesn't invoke
the special __getitem__ behavior.
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/dep/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py index 4b6c2d0b0..678a6271d 100644 --- a/pym/portage/dep/__init__.py +++ b/pym/portage/dep/__init__.py @@ -981,8 +981,15 @@ class ExtendedAtomDict(portage.cache.mappings.MutableMapping): for k in self._extended: yield k + def iteritems(self): + for item in self._normal.items(): + yield item + for item in self._extended.items(): + yield item + if sys.hexversion >= 0x3000000: keys = __iter__ + items = iteritems def __len__(self): return len(self._normal) + len(self._extended) |