summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/models.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-06-02 08:24:04 +0100
commitd393fe6cff773561353e4f6d721210be09a77289 (patch)
tree4dee949b24bcf0bcf031ab35c8e3e21b5301054b /bitbake/lib/toaster/orm/models.py
parent314541f60041adff40be32fdfa3f426133c657ca (diff)
downloadpoky-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/orm/models.py')
-rw-r--r--bitbake/lib/toaster/orm/models.py2
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