diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-09 21:14:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-09 22:28:04 +0100 |
commit | c6c341a5552562ba927af15ab3c573b396d260dc (patch) | |
tree | 3352809ffd47531a891c78c8dee6edffa295e5c1 /bitbake/lib/bb/providers.py | |
parent | 5c3944c0f9dade077ab306102cf877c1cceaeb91 (diff) | |
download | poky-c6c341a5552562ba927af15ab3c573b396d260dc.tar.gz |
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/providers.py')
-rw-r--r-- | bitbake/lib/bb/providers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py index fcee6dc4f7..3d0fb4840d 100644 --- a/bitbake/lib/bb/providers.py +++ b/bitbake/lib/bb/providers.py | |||
@@ -92,9 +92,9 @@ def sortPriorities(pn, dataCache, pkg_pn = None): | |||
92 | priorities[priority][preference] = [] | 92 | priorities[priority][preference] = [] |
93 | priorities[priority][preference].append(f) | 93 | priorities[priority][preference].append(f) |
94 | tmp_pn = [] | 94 | tmp_pn = [] |
95 | for pri in sorted(priorities, lambda a, b: a - b): | 95 | for pri in sorted(priorities): |
96 | tmp_pref = [] | 96 | tmp_pref = [] |
97 | for pref in sorted(priorities[pri], lambda a, b: b - a): | 97 | for pref in sorted(priorities[pri]): |
98 | tmp_pref.extend(priorities[pri][pref]) | 98 | tmp_pref.extend(priorities[pri][pref]) |
99 | tmp_pn = [tmp_pref] + tmp_pn | 99 | tmp_pn = [tmp_pref] + tmp_pn |
100 | 100 | ||