mirror of
https://github.com/ceph/ceph
synced 2025-03-06 08:20:12 +00:00
tools: ceph-release-notes: fix sorted() key lambda regression
https://github.com/ceph/ceph/pull/16261 ported the script to Python 3, but it retained the 2-argument version of the sorted() key function - in Python 3 the key function takes only one argument. Signed-off-by: Nathan Cutler <ncutler@suse.com>
This commit is contained in:
parent
cadab4368b
commit
96c672e891
@ -218,7 +218,7 @@ def make_release_notes(gh, repo, ref, plaintext, verbose, strict, use_tags):
|
||||
issue + " " + str(prs))
|
||||
|
||||
for (pr, (author, title, message)) in sorted(
|
||||
pr2info.items(), key=lambda k, v: (v[2], v[1])
|
||||
pr2info.items(), key=lambda title: title[1][1]
|
||||
):
|
||||
if pr in pr2issues:
|
||||
if plaintext:
|
||||
|
Loading…
Reference in New Issue
Block a user