# HG changeset patch # User Augie Fackler # Date 2017-05-22 17:35:22 # Node ID 75544176bc28ad24405c77d592971d525aeca8b8 # Parent 9fd9f91b0c436b7dd9a4ea904d5299dbfc2eda38 cmdutil: use a generator expression instead of a list comprehension diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1169,7 +1169,7 @@ def export(repo, revs, fntemplate='hg-%h ''' 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):