]> granicus.if.org Git - python/commit
Issue #26186: Remove an invalid type check in
authorBrett Cannon <brett@python.org>
Sun, 21 Feb 2016 02:35:41 +0000 (18:35 -0800)
committerBrett Cannon <brett@python.org>
Sun, 21 Feb 2016 02:35:41 +0000 (18:35 -0800)
commit558823a0cf7834cb8bc45123604008e33b4e69e2
tree9f381020ea9dca25831e6fcea2aa63d76b9189e9
parent4f38cb41fe022c94bb5569c72d8b48020d8c13d4
Issue #26186: Remove an invalid type check in
importlib.util.LazyLoader.

The class was checking its argument as to whether its implementation
of create_module() came directly from importlib.abc.Loader. The
problem is that the classes coming from imoprtlib.machinery do not
directly inherit from the ABC as they come from _frozen_importlib.
Because the documentation has always said that create_module() was
ignored, the check has simply been removed.
Lib/importlib/abc.py
Lib/importlib/util.py
Lib/test/test_importlib/test_lazy.py
Misc/NEWS