summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/tables.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-05-10 16:18:02 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-16 23:32:41 +0100
commit473daf72545421ee2df40278efda7d3999a5d356 (patch)
treeba356af365a7d3a316a0313f5e9712f74af5ef42 /bitbake/lib/toaster/toastergui/tables.py
parent337c8af55dac929b72e0bb32ef320cbb4b0e7892 (diff)
downloadpoky-473daf72545421ee2df40278efda7d3999a5d356.tar.gz
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: 49d9cf1040e1659350eeaf6db4c40dc4c9bf7e50) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tables.py')
-rw-r--r--bitbake/lib/toaster/toastergui/tables.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py
index d375da434f..82dd3cd6b1 100644
--- a/bitbake/lib/toaster/toastergui/tables.py
+++ b/bitbake/lib/toaster/toastergui/tables.py
@@ -344,8 +344,7 @@ class RecipesTable(ToasterTable):
344 context = super(RecipesTable, self).get_context_data(**kwargs) 344 context = super(RecipesTable, self).get_context_data(**kwargs)
345 345
346 context['project'] = project 346 context['project'] = project
347 347 context['projectlayers'] = [player.layercommit.id for player in ProjectLayer.objects.filter(project=context['project'])]
348 context['projectlayers'] = map(lambda prjlayer: prjlayer.layercommit.id, ProjectLayer.objects.filter(project=context['project']))
349 348
350 return context 349 return context
351 350