summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-15 18:00:08 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-15 18:00:08 +0000
commit2c3c5aeb95cb0c94fb74f9d482c5b194b887f4e7 (patch)
tree74136f3303bd272379000d1c5a8c879e4d3bcccd /pym
parent0c7da1aa5b5dda91bfe185c8921abd4f067b09d2 (diff)
downloadportage-2c3c5aeb95cb0c94fb74f9d482c5b194b887f4e7.tar.gz
portage-2c3c5aeb95cb0c94fb74f9d482c5b194b887f4e7.tar.bz2
portage-2c3c5aeb95cb0c94fb74f9d482c5b194b887f4e7.zip
For py3k compatibility, replace map() call with a normal for loop. Thanks to
Ali Polatel <hawking@g.o>. svn path=/main/trunk/; revision=11416
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/porttree.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 2948ba6a4..614f6dec3 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -263,7 +263,8 @@ class portdbapi(dbapi):
# if newer version, wipe everything and negate eapi
eapi = metadata["EAPI"]
metadata = {}
- map(lambda x: metadata.setdefault(x, ""), auxdbkeys)
+ for x in self._known_keys:
+ metadata.setdefault(x, "")
metadata["EAPI"] = "-" + eapi
if metadata.get("INHERITED", False):