diff options
author | Brett Cannon <brett@python.org> | 2016-02-21 02:37:04 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2016-02-21 02:37:04 (GMT) |
commit | e5f4d3c2460bdedfcff196cb7399e407db69aa73 (patch) | |
tree | e8f37921bcb9d2337f9153bf9a0819fc453a7725 /Lib/importlib/util.py | |
parent | 0911c0d27176bb0501b87dd65ebfb47bc3da4e12 (diff) | |
parent | 558823a0cf7834cb8bc45123604008e33b4e69e2 (diff) | |
download | cpython-e5f4d3c2460bdedfcff196cb7399e407db69aa73.zip cpython-e5f4d3c2460bdedfcff196cb7399e407db69aa73.tar.gz cpython-e5f4d3c2460bdedfcff196cb7399e407db69aa73.tar.bz2 |
Merge for issue #26186
Diffstat (limited to 'Lib/importlib/util.py')
-rw-r--r-- | Lib/importlib/util.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/importlib/util.py b/Lib/importlib/util.py index 39cb0f7..af781fd 100644 --- a/Lib/importlib/util.py +++ b/Lib/importlib/util.py @@ -263,11 +263,6 @@ class LazyLoader(abc.Loader): def __check_eager_loader(loader): if not hasattr(loader, 'exec_module'): raise TypeError('loader must define exec_module()') - elif hasattr(loader.__class__, 'create_module'): - if abc.Loader.create_module != loader.__class__.create_module: - # Only care if create_module() is overridden in a subclass of - # importlib.abc.Loader. - raise TypeError('loader cannot define create_module()') @classmethod def factory(cls, loader): |