From 6907b88a99468f88e6ba2ca479d419dcdf921131 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 21 Sep 2009 16:07:07 +0000 Subject: Use dict.(keys|values|items)() instead of dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327 --- pym/portage/news.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/portage/news.py') diff --git a/pym/portage/news.py b/pym/portage/news.py index 84d9ab877..c178a8c48 100644 --- a/pym/portage/news.py +++ b/pym/portage/news.py @@ -235,7 +235,7 @@ class NewsItem(object): 'profile' : profile } all_match = True - for values in self.restrictions.itervalues(): + for values in self.restrictions.values(): any_match = False for restriction in values: if restriction.checkRestriction(**kwargs): @@ -269,7 +269,7 @@ class NewsItem(object): restricts = { _installedRE : DisplayInstalledRestriction, _profileRE : DisplayProfileRestriction, _keywordRE : DisplayKeywordRestriction } - for regex, restriction in restricts.iteritems(): + for regex, restriction in restricts.items(): match = regex.match(line) if match: restrict = restriction(match.groups()[0].strip()) -- cgit v1.2.3-1-g7c22