# HG changeset patch # User Martin von Zweigbergk # Date 1596174591 25200 # Node ID c8655782ef19e8b4df443220833ac8b52de54108 # Parent 8bc9d045005a6f3f8e10f120f4058129277d7fce packaging: delete unnecessary updating of `dirs` list The `dirs` list is not used and it seems it also wasn't used when this code was added in 395b0e132836 (Don't copy hidden files/directories during `setup.py install`, 2009-07-14). Differential Revision: https://phab.mercurial-scm.org/D8857 diff -r 8bc9d045005a -r c8655782ef19 setup.py --- a/setup.py Sun Aug 02 10:08:18 2020 -0700 +++ b/setup.py Thu Jul 30 22:49:51 2020 -0700 @@ -1628,7 +1628,6 @@ for root in ('templates',): for curdir, dirs, files in os.walk(os.path.join('mercurial', root)): curdir = curdir.split(os.sep, 1)[1] - dirs[:] = filter(ordinarypath, dirs) for f in filter(ordinarypath, files): f = os.path.join(curdir, f) packagedata['mercurial'].append(f)