diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-10-23 09:29:16 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-10-23 09:29:16 -0400 |
commit | c50d4e37edb96b7e4d63101139591a007e5e7241 (patch) | |
tree | a486571ca09b2aecf6b001bc11834219ca45a38c /setuptools/namespaces.py | |
parent | d5494571842c63e4b1903d8f455727e408464ff5 (diff) | |
download | external_python_setuptools-c50d4e37edb96b7e4d63101139591a007e5e7241.tar.gz external_python_setuptools-c50d4e37edb96b7e4d63101139591a007e5e7241.tar.bz2 external_python_setuptools-c50d4e37edb96b7e4d63101139591a007e5e7241.zip |
Extract variable
Diffstat (limited to 'setuptools/namespaces.py')
-rwxr-xr-x | setuptools/namespaces.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/namespaces.py b/setuptools/namespaces.py index 13829521..4248d1fc 100755 --- a/setuptools/namespaces.py +++ b/setuptools/namespaces.py @@ -55,7 +55,8 @@ class Installer: def _get_all_ns_packages(self): """Return sorted list of all package namespaces""" nsp = set() - for pkg in self.distribution.namespace_packages or []: + pkgs = self.distribution.namespace_packages or [] + for pkg in pkgs: pkg = pkg.split('.') while pkg: nsp.add('.'.join(pkg)) |