Commit 6ad2fb0b authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #2517 from hroncok/load_module

Define create_module()/exec_module() in VendorImporter
parents 470dd358 de4b9885
Define ``create_module()`` and ``exec_module()`` methods in ``VendorImporter``
to get rid of ``ImportWarning`` -- by :user:`hroncok`
......@@ -54,6 +54,12 @@ class VendorImporter:
"distribution.".format(**locals())
)
def create_module(self, spec):
return self.load_module(spec.name)
def exec_module(self, module):
pass
def install(self):
"""
Install this importer into sys.meta_path if not already present.
......
......@@ -54,6 +54,12 @@ class VendorImporter:
"distribution.".format(**locals())
)
def create_module(self, spec):
return self.load_module(spec.name)
def exec_module(self, module):
pass
def install(self):
"""
Install this importer into sys.meta_path if not already present.
......
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