comparison hgext/remotefilelog/remotefilelogserver.py @ 51370:0d414fb8336f

cleanup: remove unnecessary list constructor calls around list comprehensions
author Manuel Jacob <me@manueljacob.de>
date Fri, 02 Feb 2024 03:39:37 +0100
parents d718eddf01d9
children f4733654f144
comparison
equal deleted inserted replaced
51369:508fd40dc86a 51370:0d414fb8336f
59 if includepattern or excludepattern: 59 if includepattern or excludepattern:
60 m = match.match( 60 m = match.match(
61 repo.root, b'', None, includepattern, excludepattern 61 repo.root, b'', None, includepattern, excludepattern
62 ) 62 )
63 63
64 changedfiles = list([f for f in changedfiles if not m(f)]) 64 changedfiles = [f for f in changedfiles if not m(f)]
65 return orig( 65 return orig(
66 self, changedfiles, linknodes, commonrevs, source, *args, **kwargs 66 self, changedfiles, linknodes, commonrevs, source, *args, **kwargs
67 ) 67 )
68 68
69 extensions.wrapfunction( 69 extensions.wrapfunction(