From 8c14a2e6ae30d2ed33e36bd9223fbf1cd509c679 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 9 May 2013 21:14:50 +0000 Subject: [PATCH] bitbake: providers: Remove pointless lambda sort function This lambda function is equivalent to the default sort used by sorted, so we can simply remove this. The syntax isn't compatible with python 3. (Bitbake rev: da8550fc884596222daa3f8794dce1abd01e5612) Signed-off-by: Richard Purdie --- bitbake/lib/bb/providers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py index fcee6dc..3d0fb48 100644 --- a/bitbake/lib/bb/providers.py +++ b/bitbake/lib/bb/providers.py @@ -92,9 +92,9 @@ def sortPriorities(pn, dataCache, pkg_pn = None): priorities[priority][preference] = [] priorities[priority][preference].append(f) tmp_pn = [] - for pri in sorted(priorities, lambda a, b: a - b): + for pri in sorted(priorities): tmp_pref = [] - for pref in sorted(priorities[pri], lambda a, b: b - a): + for pref in sorted(priorities[pri]): tmp_pref.extend(priorities[pri][pref]) tmp_pn = [tmp_pref] + tmp_pn -- 2.7.4