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 of importlib.abc). Calls to create_module() and exec_module() are delegated to corresponding methods on the loader for the new module name.

__init__(info)[source]

Methods

__init__(info)

create_module(spec)

exec_module(module)

Member Documentation