##// END OF EJS Templates
churn: use genexps now that we dropped 2.3 compatibility
Nicolas Dumazet -
r9390:637f2726 default
parent child Browse files
Show More
@@ -149,8 +149,8 def churn(ui, repo, *pats, **opts):
149 149 rate.sort(key=sortkey)
150 150
151 151 # Be careful not to have a zero maxcount (issue833)
152 maxcount = float(max([v for k, v in rate])) or 1.0
153 maxname = max([len(k) for k, v in rate])
152 maxcount = float(max(v for k, v in rate)) or 1.0
153 maxname = max(len(k) for k, v in rate)
154 154
155 155 ttywidth = util.termwidth()
156 156 ui.debug(_("assuming %i character terminal\n") % ttywidth)
General Comments 0
You need to be logged in to leave comments. Login now