Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/dep/
Date: Tue, 10 Jan 2012 18:42:00
Message-Id: 5be279c9b406c44b82ffa6015dbdb45263124f84.zmedico@gentoo
1 commit: 5be279c9b406c44b82ffa6015dbdb45263124f84
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 10 18:41:29 2012 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 10 18:41:29 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=5be279c9
7
8 ExtendedAtomDict: fix for python-trace
9
10 ---
11 pym/portage/dep/__init__.py | 11 +++++++----
12 1 files changed, 7 insertions(+), 4 deletions(-)
13
14 diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py
15 index 154b8a2..72411b7 100644
16 --- a/pym/portage/dep/__init__.py
17 +++ b/pym/portage/dep/__init__.py
18 @@ -1376,10 +1376,13 @@ class ExtendedAtomDict(portage.cache.mappings.MutableMapping):
19 yield k
20
21 def iteritems(self):
22 - for item in self._normal.items():
23 - yield item
24 - for item in self._extended.items():
25 - yield item
26 + try:
27 + for item in self._normal.items():
28 + yield item
29 + for item in self._extended.items():
30 + yield item
31 + except AttributeError:
32 + pass # FEATURES=python-trace
33
34 def __delitem__(self, cp):
35 if "*" in cp: