[Pkg-bazaar-commits] ./bzr-stats/unstable r22: Fix 2.4 fix.

Jelmer Vernooij jelmer at samba.org
Wed Jul 16 17:44:40 UTC 2008


------------------------------------------------------------
revno: 22
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: debian
timestamp: Wed 2008-07-16 19:44:40 +0200
message:
  Fix 2.4 fix.
modified:
  __init__.py
    ------------------------------------------------------------
    revno: 10.2.14
    committer: Jelmer Vernooij <jelmer at samba.org>
    branch nick: trunk
    timestamp: Wed 2008-07-16 19:44:05 +0200
    message:
      Remove 2.5ism.
    modified:
      __init__.py
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py	2008-07-04 12:43:31 +0000
+++ b/__init__.py	2008-07-16 17:44:05 +0000
@@ -176,7 +176,9 @@
             print '     Contributions:'
             classes, total = gather_class_stats(revs)
             for name,count in sorted(classes.items(), lambda x,y: cmp((x[1], x[0]), (y[1], y[0]))):
-                to_file.write("     %4.0f%% %s\n" % ((float(count) / total) * 100.0, "Unknown" if name is None else name))
+                if name is None:
+                    name = "Unknown"
+                to_file.write("     %4.0f%% %s\n" % ((float(count) / total) * 100.0, name))
 
 
 class cmd_committer_statistics(commands.Command):



More information about the Pkg-bazaar-commits mailing list