changeset 32432:75544176bc28

cmdutil: use a generator expression instead of a list comprehension
author Augie Fackler <augie@google.com>
date Mon, 22 May 2017 13:35:22 -0400
parents 9fd9f91b0c43
children 7feaf5550a9e
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):