changeset 45270:c8655782ef19

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
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 30 Jul 2020 22:49:51 -0700
parents 8bc9d045005a
children 0e18861f96ab
files setup.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)