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):