]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: ceph-release-notes: port it to py3 16261/head
authorKefu Chai <kchai@redhat.com>
Tue, 11 Jul 2017 15:26:45 +0000 (23:26 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 11 Jul 2017 15:27:12 +0000 (23:27 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/script/ceph-release-notes

index 6f0d70cf7f7f1f61570aed93ccc319e2da5e3b7f..90ab59129c843b44b2b3dbad2d9c35d685dc12ee 100755 (executable)
@@ -211,13 +211,13 @@ def make_release_notes(gh, repo, ref, plaintext, verbose, strict, use_tags):
     print (" done collecting merges.")
 
     if strict:
-        for (issue, prs) in issue2prs.iteritems():
+        for (issue, prs) in issue2prs.items():
             if len(prs) > 1:
                 print (">>>>>>> " + str(len(prs)) + " pr for issue " +
                        issue + " " + str(prs))
 
     for (pr, (author, title, message)) in sorted(
-        pr2info.iteritems(), key=lambda (k, v): (v[2], v[1])
+        pr2info.items(), key=lambda k, v: (v[2], v[1])
     ):
         if pr in pr2issues:
             if plaintext: