MovedModuleLoader
(class from pyomo.common.deprecation
)
- class pyomo.common.deprecation.MovedModuleLoader(info)[source]
Bases:
object
Custom module loader that supports loading modules through alternate names
This class implements the
importlib.abc.Loader
interface (through duck-typing to avoid a surprisingly costly import ofimportlib.abc
). Calls tocreate_module()
andexec_module()
are delegated to corresponding methods on the loader for the new module name.Methods
__init__
(info)create_module
(spec)exec_module
(module)Member Documentation