A shim module for deprecated imports
Bases: exceptions.Warning
A warning to show when a module has moved, and a shim is in its place.
Bases: object
Import hook for a shim.
This ensures that submodule imports return the real target module, not a clone that will confuse is and isinstance checks.
Return self if we should be used to import the module.
Import the mirrored module, and insert it into sys.modules