@@ -991,18 +991,18 @@ for the :meth:`~importlib.abc.InspectLoader.get_code` method. However,
991991it will normally be desirable to override the default implementation
992992for performance reasons. (Contributed by Brett Cannon in :issue: `18072 `.)
993993
994- The :func: `~importlib.reload ` function has been moved from :mod: `imp ` to
995- :mod: `importlib ` as part of the :mod: `imp ` module deprecation. (Contributed by
994+ The :func: `~importlib.reload ` function has been moved from :mod: `! imp ` to
995+ :mod: `importlib ` as part of the :mod: `! imp ` module deprecation. (Contributed by
996996Berker Peksag in :issue: `18193 `.)
997997
998998:mod: `importlib.util ` now has a :data: `~importlib.util.MAGIC_NUMBER ` attribute
999999providing access to the bytecode version number. This replaces the
1000- :func: `~imp. get_magic ` function in the deprecated :mod: `imp ` module.
1000+ :func: `! get_magic ` function in the deprecated :mod: `! imp ` module.
10011001(Contributed by Brett Cannon in :issue: `18192 `.)
10021002
10031003New :mod: `importlib.util ` functions :func: `~importlib.util.cache_from_source `
10041004and :func: `~importlib.util.source_from_cache ` replace the same-named functions
1005- in the deprecated :mod: `imp ` module. (Contributed by Brett Cannon in
1005+ in the deprecated :mod: `! imp ` module. (Contributed by Brett Cannon in
10061006:issue: `18194 `.)
10071007
10081008The :mod: `importlib ` bootstrap :class: `.NamespaceLoader ` now conforms to
@@ -2101,7 +2101,7 @@ Deprecations in the Python API
21012101 and :meth: `importlib.util.set_package ` are no longer needed because their
21022102 functions are now handled automatically by the import system.
21032103
2104- * The :mod: `imp ` module is pending deprecation. To keep compatibility with
2104+ * The :mod: `! imp ` module is pending deprecation. To keep compatibility with
21052105 Python 2/3 code bases, the module's removal is currently not scheduled.
21062106
21072107* The :mod: `formatter ` module is pending deprecation and is slated for removal
@@ -2300,7 +2300,7 @@ Changes in the Python API
23002300 then you can see if the module's ``__spec__.location `` is set to ``'frozen' ``,
23012301 check if the loader is a subclass of
23022302 :class: `importlib.machinery.FrozenImporter `,
2303- or if Python 2 compatibility is necessary you can use :func: `imp.is_frozen `.
2303+ or if Python 2 compatibility is necessary you can use :func: `! imp.is_frozen `.
23042304
23052305* :func: `py_compile.compile ` now raises :exc: `FileExistsError ` if the file path
23062306 it would write to is a symlink or a non-regular file. This is to act as a
0 commit comments