diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-02-21 09:53:05 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-02-21 09:53:05 -0500 |
commit | 9406d8fe002605af0f76f2de6c1e2fa1f44522fa (patch) | |
tree | 5197bc3e103106fcf751783b8adfa6fda0626bdd /setuptools/namespaces.py | |
parent | 92c5667e23e0c3a242182f3f869b86bad6d5a0ae (diff) | |
download | external_python_setuptools-9406d8fe002605af0f76f2de6c1e2fa1f44522fa.tar.gz external_python_setuptools-9406d8fe002605af0f76f2de6c1e2fa1f44522fa.tar.bz2 external_python_setuptools-9406d8fe002605af0f76f2de6c1e2fa1f44522fa.zip |
Remove redundant test from -nspkg.pth.
If m is non-true, then has_mfs must have been False.
Diffstat (limited to 'setuptools/namespaces.py')
-rwxr-xr-x | setuptools/namespaces.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/namespaces.py b/setuptools/namespaces.py index 556b5dd2..7c24a566 100755 --- a/setuptools/namespaces.py +++ b/setuptools/namespaces.py @@ -52,7 +52,7 @@ class Installer: "importlib.util.module_from_spec(" "importlib.machinery.PathFinder.find_spec(%(pkg)r, " "[os.path.dirname(p)])))", - "m = m or not has_mfs and " + "m = m or " "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)", |