diff options
author | Georg Brandl <georg@python.org> | 2010-07-31 21:54:24 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-07-31 21:54:24 (GMT) |
commit | 62e2ca219311a111873892910ad441659faeaefa (patch) | |
tree | 74b217909164562274942fe2688f8fbc41c81fd6 /Lib/distutils | |
parent | 78aa3964156c97329ca514d1f38bd3fbc2eda8db (diff) | |
download | cpython-62e2ca219311a111873892910ad441659faeaefa.zip cpython-62e2ca219311a111873892910ad441659faeaefa.tar.gz cpython-62e2ca219311a111873892910ad441659faeaefa.tar.bz2 |
#8292: Fix three instances of truth tests on return values of filter() (which is always true in Python 3).
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/sdist.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py index bb21061..f51d72f 100644 --- a/Lib/distutils/command/sdist.py +++ b/Lib/distutils/command/sdist.py @@ -240,8 +240,7 @@ class sdist(Command): optional = ['test/test*.py', 'setup.cfg'] for pattern in optional: files = filter(os.path.isfile, glob(pattern)) - if files: - self.filelist.extend(files) + self.filelist.extend(files) # build_py is used to get: # - python modules |