comparison setup.py @ 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 41ff8a463e10
comparison
equal deleted inserted replaced
45269:8bc9d045005a 45270:c8655782ef19
1626 1626
1627 1627
1628 for root in ('templates',): 1628 for root in ('templates',):
1629 for curdir, dirs, files in os.walk(os.path.join('mercurial', root)): 1629 for curdir, dirs, files in os.walk(os.path.join('mercurial', root)):
1630 curdir = curdir.split(os.sep, 1)[1] 1630 curdir = curdir.split(os.sep, 1)[1]
1631 dirs[:] = filter(ordinarypath, dirs)
1632 for f in filter(ordinarypath, files): 1631 for f in filter(ordinarypath, files):
1633 f = os.path.join(curdir, f) 1632 f = os.path.join(curdir, f)
1634 packagedata['mercurial'].append(f) 1633 packagedata['mercurial'].append(f)
1635 1634
1636 datafiles = [] 1635 datafiles = []