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

Extract variable

parent d5494571
......@@ -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))
......
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