(class from pyomo.common.deprecation)
pyomo.common.deprecation
Bases: object
object
Custom finder that supports loading a module through an alternative name.
This class implements the importlib.abc.Finder interface (through duck-typing to avoid a surprisingly costly import of importlib.abc).
importlib.abc.Finder
importlib.abc
Pyomo automatically registers a single instance of this finder with importlib by appending it to the end of the sys.meta_path list when this module is imported. Subsequent calls to moved_module() register the association between the old and new module names with the mapping class attribute.
importlib
sys.meta_path
moved_module()
mapping
Methods
__init__()
__init__
find_spec(fullname, path[, target])
find_spec
invalidate_caches()
invalidate_caches
Attributes
dict that maps (removed) module names to MovedModuleInfo objects
dict
MovedModuleInfo
Member Documentation