From: Zac Medico Date: Tue, 10 Jan 2012 18:41:29 +0000 (-0800) Subject: ExtendedAtomDict: fix for python-trace X-Git-Tag: v2.2.0_alpha85~44 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5be279c9b406c44b82ffa6015dbdb45263124f84;p=portage.git ExtendedAtomDict: fix for python-trace --- diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py index 154b8a23e..72411b7c7 100644 --- a/pym/portage/dep/__init__.py +++ b/pym/portage/dep/__init__.py @@ -1376,10 +1376,13 @@ class ExtendedAtomDict(portage.cache.mappings.MutableMapping): yield k def iteritems(self): - for item in self._normal.items(): - yield item - for item in self._extended.items(): - yield item + try: + for item in self._normal.items(): + yield item + for item in self._extended.items(): + yield item + except AttributeError: + pass # FEATURES=python-trace def __delitem__(self, cp): if "*" in cp: