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>
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