diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 16:07:07 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 16:07:07 +0000 |
commit | 6907b88a99468f88e6ba2ca479d419dcdf921131 (patch) | |
tree | f5cb8ca5056485096ac54022907299cacc2acc23 /pym/portage/news.py | |
parent | 31505dfc2b6a6a0533123fe43d2240aab177d7c4 (diff) | |
download | portage-6907b88a99468f88e6ba2ca479d419dcdf921131.tar.gz portage-6907b88a99468f88e6ba2ca479d419dcdf921131.tar.bz2 portage-6907b88a99468f88e6ba2ca479d419dcdf921131.zip |
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
Diffstat (limited to 'pym/portage/news.py')
-rw-r--r-- | pym/portage/news.py | 4 |
1 files changed, 2 insertions, 2 deletions
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()) |