Commit e50f854c authored by Jason R. Coombs's avatar Jason R. Coombs

Rely on degenerate behavior in list.extend, as found in distutils.

parent edeee301
......@@ -150,9 +150,8 @@ class sdist(orig.sdist):
optional = ['test/test*.py', 'setup.cfg']
for pattern in optional:
files = list(filter(cs_path_exists, glob(pattern)))
if files:
self.filelist.extend(files)
files = filter(cs_path_exists, glob(pattern))
self.filelist.extend(files)
# getting python files
if self.distribution.has_pure_modules():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment