diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-10-03 06:26:58 +0200 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-10-03 06:26:58 +0200 | 
| commit | 27b47b5db42407baf5d704bf52c35015b2c0ad7b (patch) | |
| tree | 320f8d5fc315c211f7d073891bd7117754f5f5b3 /bin/sfsum | |
| parent | 6be31f5d140b81227911cabfc61d3802c76c1b61 (diff) | |
| parent | fabd454ddf505302bf41ef4da0609437c29d5605 (diff) | |
Merge branch 'release/3.0.0+repack-1'3.0.0+repack-1
Diffstat (limited to 'bin/sfsum')
| -rw-r--r-- | bin/sfsum | 11 | 
1 files changed, 6 insertions, 5 deletions
@@ -22,6 +22,7 @@  #  #       https://sourceforge.net/projects/sitedocs/  # +from __future__ import print_function  import xml.sax  import xml.sax.saxutils @@ -121,9 +122,9 @@ if __name__ == '__main__':      # generalized once we figure out other things for this script to do.      bugs = [x for x in Artifacts['Bugs'] if x.status == 'Open'] -    print list(Artifacts.keys()) +    print(list(Artifacts.keys())) -    print "%d open bugs" % len(bugs) +    print("%d open bugs" % len(bugs))      # Sort them into a separate list for each assignee.      Assigned = {} @@ -141,7 +142,7 @@ if __name__ == '__main__':          except KeyError:              pass          else: -            print "    %s" % a -            b.sort(lambda x, y: cmp(x.artifact_id, y.artifact_id)) +            print("    %s" % a) +            b.sort(key=lambda x, y: (x.artifact_id, y.artifact_id))              for bug in b: -                print "        %-6s  %s" % (bug.artifact_id, bug.summary) +                print("        %-6s  %s" % (bug.artifact_id, bug.summary))  | 
