diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-10 16:18:02 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:04 +0100 |
commit | d393fe6cff773561353e4f6d721210be09a77289 (patch) | |
tree | 4dee949b24bcf0bcf031ab35c8e3e21b5301054b /bitbake/lib/toaster/toastergui/tables.py | |
parent | 314541f60041adff40be32fdfa3f426133c657ca (diff) | |
download | poky-d393fe6cff773561353e4f6d721210be09a77289.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: d41eb6d6c061cb35ec1ecd899f856876f9077167)
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.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index d21bed1fbe..caa2fba51a 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py | |||
@@ -333,8 +333,7 @@ class RecipesTable(ToasterTable): | |||
333 | context = super(RecipesTable, self).get_context_data(**kwargs) | 333 | context = super(RecipesTable, self).get_context_data(**kwargs) |
334 | 334 | ||
335 | context['project'] = project | 335 | context['project'] = project |
336 | 336 | context['projectlayers'] = [player.layercommit.id for player in ProjectLayer.objects.filter(project=context['project'])] | |
337 | context['projectlayers'] = map(lambda prjlayer: prjlayer.layercommit.id, ProjectLayer.objects.filter(project=context['project'])) | ||
338 | 337 | ||
339 | return context | 338 | return context |
340 | 339 | ||