Rev 24: Remove 2.5ism. in file:///data/jelmer/bzr-stats/trunk/

Jelmer Vernooij jelmer at samba.org
Wed Jul 16 18:44:05 BST 2008


At file:///data/jelmer/bzr-stats/trunk/

------------------------------------------------------------
revno: 24
revision-id: jelmer at samba.org-20080716174405-kz8cuxvfes40t2b2
parent: jelmer at samba.org-20080704124331-hg0jgb6cs9boauut
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                    __init__.py-20060629132721-mkbaty0vfk4y3v59-1
=== 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 bazaar-commits mailing list