From: Zac Medico Date: Fri, 15 Aug 2008 18:00:08 +0000 (-0000) Subject: For py3k compatibility, replace map() call with a normal for loop. Thanks to X-Git-Tag: v2.2_rc9~85 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2c3c5aeb95cb0c94fb74f9d482c5b194b887f4e7;p=portage.git For py3k compatibility, replace map() call with a normal for loop. Thanks to Ali Polatel . svn path=/main/trunk/; revision=11416 --- 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):