aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/providers.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 21:14:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 22:26:54 +0100
commitda8550fc884596222daa3f8794dce1abd01e5612 (patch)
treebc22f416eef40d16283713ce0a6ae93a395013bf /lib/bb/providers.py
parent4a43e58dd97ec6ea304eaa727c030973a5bc91b7 (diff)
downloadbitbake-da8550fc884596222daa3f8794dce1abd01e5612.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/providers.py')
-rw-r--r--lib/bb/providers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/providers.py b/lib/bb/providers.py
index fcee6dc4f..3d0fb4840 100644
--- a/lib/bb/providers.py
+++ b/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