aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/namespaces.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-12-11 15:58:49 -0500
committerJason R. Coombs <jaraco@jaraco.com>2016-12-11 15:58:49 -0500
commit6070cc15ed234a71777747c4cdd55f228f3d7b90 (patch)
tree330e1a498ddba0ae80d9ead0f99e94de5f6c9282 /setuptools/namespaces.py
parent67aefd1b218e5a97fb4be7830ac4b28d8eb6a26e (diff)
downloadexternal_python_setuptools-6070cc15ed234a71777747c4cdd55f228f3d7b90.tar.gz
external_python_setuptools-6070cc15ed234a71777747c4cdd55f228f3d7b90.tar.bz2
external_python_setuptools-6070cc15ed234a71777747c4cdd55f228f3d7b90.zip
Don't nullify module when has_mfs
Diffstat (limited to 'setuptools/namespaces.py')
-rwxr-xr-xsetuptools/namespaces.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/namespaces.py b/setuptools/namespaces.py
index 96aa20e7..69debe4b 100755
--- a/setuptools/namespaces.py
+++ b/setuptools/namespaces.py
@@ -51,7 +51,7 @@ class Installer:
"importlib.util.module_from_spec("
"importlib.machinery.PathFinder.find_spec(%(pkg)r, "
"[os.path.dirname(p)])))",
- "m = not has_mfs and "
+ "m = m or not has_mfs and "
"sys.modules.setdefault(%(pkg)r, types.ModuleType(%(pkg)r))",
"mp = (m or []) and m.__dict__.setdefault('__path__',[])",
"(p not in mp) and mp.append(p)",