Mercurial > hg
changeset 9390:637f2726ec7f
churn: use genexps now that we dropped 2.3 compatibility
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Wed, 26 Aug 2009 13:07:27 +0200 |
parents | 7cca980317c5 |
children | 2705e6816d33 |
files | hgext/churn.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)