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,8 +150,7 @@ class sdist(orig.sdist): ...@@ -150,8 +150,7 @@ class sdist(orig.sdist):
optional = ['test/test*.py', 'setup.cfg'] optional = ['test/test*.py', 'setup.cfg']
for pattern in optional: for pattern in optional:
files = list(filter(cs_path_exists, glob(pattern))) files = filter(cs_path_exists, glob(pattern))
if files:
self.filelist.extend(files) self.filelist.extend(files)
# getting python files # getting python files
......
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