diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-05-22 14:55:31 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-05-22 14:55:31 -0400 |
commit | 4f6fc8537842c14b03c4a1ffd25b88f2f4c276c6 (patch) | |
tree | d8de0b646d4aeb5da83657677bfd61dcd4b87ea6 /setuptools/command/build_py.py | |
parent | de5db9dbd9da6802219fe1b70ba84207f60470dd (diff) | |
download | external_python_setuptools-4f6fc8537842c14b03c4a1ffd25b88f2f4c276c6.tar.gz external_python_setuptools-4f6fc8537842c14b03c4a1ffd25b88f2f4c276c6.tar.bz2 external_python_setuptools-4f6fc8537842c14b03c4a1ffd25b88f2f4c276c6.zip |
Use itertools.chain for more lenient support of any iterable types and also more uniform indentation.
Diffstat (limited to 'setuptools/command/build_py.py')
-rw-r--r-- | setuptools/command/build_py.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py index 8623c777..3849b6ad 100644 --- a/setuptools/command/build_py.py +++ b/setuptools/command/build_py.py @@ -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 |