From d393fe6cff773561353e4f6d721210be09a77289 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Tue, 10 May 2016 16:18:02 +0300 Subject: bitbake: toaster: replace map with list comprehensions map returns map object in python 3. Replaced calls of map to equivalent list comprehensions in the code which requires lists. [YOCTO #9584] (Bitbake rev: d41eb6d6c061cb35ec1ecd899f856876f9077167) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/lib/toaster/orm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/toaster/orm/models.py') diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index ee01a46250..dd6466471d 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -1183,7 +1183,7 @@ class LayerIndexLayerSource(LayerSource): # update branches; only those that we already have names listed in the # Releases table - whitelist_branch_names = map(lambda x: x.branch_name, Release.objects.all()) + whitelist_branch_names = [rel.branch_name for rel in Release.objects.all()] if len(whitelist_branch_names) == 0: raise Exception("Failed to make list of branches to fetch") -- cgit v1.2.3-54-g00ecf