Commit b9efa362 authored by Georg Brandl's avatar Georg Brandl

#8292: Fix three instances of truth tests on return values of filter() (which...

#8292: Fix three instances of truth tests on return values of filter() (which is always true in Python 3).
parent 022d6c31
......@@ -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
......
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