From 5be279c9b406c44b82ffa6015dbdb45263124f84 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 10 Jan 2012 10:41:29 -0800 Subject: [PATCH] ExtendedAtomDict: fix for python-trace --- pym/portage/dep/__init__.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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: -- 2.26.2