Commit 4f6fc853 authored by Jason R. Coombs's avatar Jason R. Coombs

Use itertools.chain for more lenient support of any iterable types and also...

Use itertools.chain for more lenient support of any iterable types and also more uniform indentation.
parent de5db9db
......@@ -94,8 +94,10 @@ class build_py(orig.build_py, Mixin2to3):
def find_data_files(self, package, src_dir):
"""Return filenames for package's data files in 'src_dir'"""
globs = (self.package_data.get('', [])
+ self.package_data.get(package, []))
globs = itertools.chain(
self.package_data.get('', []),
self.package_data.get(package, []),
)
files = self.manifest_files.get(package, [])[:]
for pattern in globs:
# Each pattern has to be converted to a platform-specific path
......
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