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-05-16 23:32:41 +0100 |
commit | 473daf72545421ee2df40278efda7d3999a5d356 (patch) | |
tree | ba356af365a7d3a316a0313f5e9712f74af5ef42 /bitbake/lib/toaster/orm/models.py | |
parent | 337c8af55dac929b72e0bb32ef320cbb4b0e7892 (diff) | |
download | poky-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/orm/models.py')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
1183 | 1183 | ||
1184 | # update branches; only those that we already have names listed in the | 1184 | # update branches; only those that we already have names listed in the |
1185 | # Releases table | 1185 | # Releases table |
1186 | whitelist_branch_names = map(lambda x: x.branch_name, Release.objects.all()) | 1186 | whitelist_branch_names = [rel.branch_name for rel in Release.objects.all()] |
1187 | if len(whitelist_branch_names) == 0: | 1187 | if len(whitelist_branch_names) == 0: |
1188 | raise Exception("Failed to make list of branches to fetch") | 1188 | raise Exception("Failed to make list of branches to fetch") |
1189 | 1189 | ||