aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-10-14 14:13:51 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-10-14 14:13:51 -0400
commite50f854c4a6d2641aaad5421268fb6f717984e21 (patch)
treedc7fe39bcbc2d718bdd033597ee5f2b7c4bbae34 /setuptools/command
parentedeee301585be35f764b27ea2a77d54e5b8aedfd (diff)
downloadexternal_python_setuptools-e50f854c4a6d2641aaad5421268fb6f717984e21.tar.gz
external_python_setuptools-e50f854c4a6d2641aaad5421268fb6f717984e21.tar.bz2
external_python_setuptools-e50f854c4a6d2641aaad5421268fb6f717984e21.zip
Rely on degenerate behavior in list.extend, as found in distutils.
Diffstat (limited to 'setuptools/command')
-rwxr-xr-xsetuptools/command/sdist.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index 1d4f5d54..52c58055 100755
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -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():