diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-23 10:21:19 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-23 10:21:19 -0500 |
commit | 3ade3c11402c161a623e54502472fdd6cc7bd0dc (patch) | |
tree | 2de95ddab9e572134a1a1c7f4a9dac316c9f7c2d /setuptools/command/build_ext.py | |
parent | 2b880cc89d0ce6845c4bdd072ac518a7ed9baa08 (diff) | |
download | external_python_setuptools-3ade3c11402c161a623e54502472fdd6cc7bd0dc.tar.gz external_python_setuptools-3ade3c11402c161a623e54502472fdd6cc7bd0dc.tar.bz2 external_python_setuptools-3ade3c11402c161a623e54502472fdd6cc7bd0dc.zip |
Collapse two generator expressions.
Diffstat (limited to 'setuptools/command/build_ext.py')
-rw-r--r-- | setuptools/command/build_ext.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py index 2651beae..78155223 100644 --- a/setuptools/command/build_ext.py +++ b/setuptools/command/build_ext.py @@ -203,10 +203,10 @@ class build_ext(_build_ext): fn_exts = ['.py', '.pyc'] if self.get_finalized_command('build_py').optimize: fn_exts.append('.pyo') - ns_ext = (ext for ext in self.extensions if ext._needs_stub) ns_ext_bases = ( os.path.join(self.build_lib, *ext._full_name.split('.')) - for ext in ns_ext + for ext in self.extensions + if ext._needs_stub ) pairs = itertools.product(ns_ext_bases, fn_exts) return (base + fnext for base, fnext in pairs) |