From 2c3c5aeb95cb0c94fb74f9d482c5b194b887f4e7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 15 Aug 2008 18:00:08 +0000 Subject: For py3k compatibility, replace map() call with a normal for loop. Thanks to Ali Polatel . svn path=/main/trunk/; revision=11416 --- pym/portage/dbapi/porttree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pym') 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): -- cgit v1.2.3-1-g7c22