summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-22 03:51:12 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-22 03:51:12 +0000
commitc5a17c830abc97a60378f61a92632a49cd647321 (patch)
tree39e44ac8720bf6d84aa76e9b1cd74ffcd7d67822
parentd08d34e54a2c691ea56a4d25089e5cdb91eede93 (diff)
downloadportage-c5a17c830abc97a60378f61a92632a49cd647321.tar.gz
portage-c5a17c830abc97a60378f61a92632a49cd647321.tar.bz2
portage-c5a17c830abc97a60378f61a92632a49cd647321.zip
Fix 'iteritems' attribute detection to look for 'items' instead.
svn path=/main/trunk/; revision=14374
-rw-r--r--pym/portage/dbapi/porttree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index e9bde27fb..90092eaa3 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -506,7 +506,7 @@ class portdbapi(dbapi):
def _metadata_callback(self, cpv, ebuild_path, repo_path, metadata, mtime):
i = metadata
- if hasattr(metadata, "iteritems"):
+ if hasattr(metadata, "items"):
i = iter(metadata.items())
metadata = dict(i)