packaging: delete unnecessary updating of `dirs` list
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 30 Jul 2020 22:49:51 -0700
changeset 45270 c8655782ef19
parent 45269 8bc9d045005a
child 45274 0e18861f96ab
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
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)