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

Rewrite globs as chain of iterables.

parent 8f0ac47d
......@@ -194,9 +194,9 @@ class build_py(orig.build_py, Mixin2to3):
def exclude_data_files(self, package, src_dir, files):
"""Filter filenames for package's data files in 'src_dir'"""
globs = (
self.exclude_package_data.get('', [])
+ self.exclude_package_data.get(package, [])
globs = itertools.chain(
self.exclude_package_data.get('', []),
self.exclude_package_data.get(package, []),
)
bad = set(
item
......
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