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:
Nathan Cutler 2017-07-19 09:37:31 +02:00
parent cadab4368b
commit 96c672e891

View File

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