cmdutil: use a generator expression instead of a list comprehension
authorAugie Fackler <augie@google.com>
Mon, 22 May 2017 13:35:22 -0400
changeset 32432 75544176bc28
parent 32431 9fd9f91b0c43
child 32433 7feaf5550a9e
cmdutil: use a generator expression instead of a list comprehension
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Sat May 20 20:15:05 2017 -0400
+++ b/mercurial/cmdutil.py	Mon May 22 13:35:22 2017 -0400
@@ -1169,7 +1169,7 @@
     '''
 
     total = len(revs)
-    revwidth = max([len(str(rev)) for rev in revs])
+    revwidth = max(len(str(rev)) for rev in revs)
     filemode = {}
 
     def single(rev, seqno, fp):