author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
Wed, 26 Aug 2009 13:07:27 +0200 | |
changeset 9390 | 637f2726ec7f |
parent 9389 | 7cca980317c5 |
child 9391 | 2705e6816d33 |
hgext/churn.py | file | annotate | diff | comparison | revisions |
--- a/hgext/churn.py Wed Aug 26 13:05:51 2009 +0200 +++ b/hgext/churn.py Wed Aug 26 13:07:27 2009 +0200 @@ -149,8 +149,8 @@ rate.sort(key=sortkey) # Be careful not to have a zero maxcount (issue833) - maxcount = float(max([v for k, v in rate])) or 1.0 - maxname = max([len(k) for k, v in rate]) + maxcount = float(max(v for k, v in rate)) or 1.0 + maxname = max(len(k) for k, v in rate) ttywidth = util.termwidth() ui.debug(_("assuming %i character terminal\n") % ttywidth)