@@ -991,18 +991,18 @@ for the :meth:`~importlib.abc.InspectLoader.get_code` method. However,
991
991
it will normally be desirable to override the default implementation
992
992
for performance reasons. (Contributed by Brett Cannon in :issue: `18072 `.)
993
993
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
996
996
Berker Peksag in :issue: `18193 `.)
997
997
998
998
:mod: `importlib.util ` now has a :data: `~importlib.util.MAGIC_NUMBER ` attribute
999
999
providing 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.
1001
1001
(Contributed by Brett Cannon in :issue: `18192 `.)
1002
1002
1003
1003
New :mod: `importlib.util ` functions :func: `~importlib.util.cache_from_source `
1004
1004
and :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
1006
1006
:issue: `18194 `.)
1007
1007
1008
1008
The :mod: `importlib ` bootstrap :class: `.NamespaceLoader ` now conforms to
@@ -2101,7 +2101,7 @@ Deprecations in the Python API
2101
2101
and :meth: `importlib.util.set_package ` are no longer needed because their
2102
2102
functions are now handled automatically by the import system.
2103
2103
2104
- * The :mod: `imp ` module is pending deprecation. To keep compatibility with
2104
+ * The :mod: `! imp ` module is pending deprecation. To keep compatibility with
2105
2105
Python 2/3 code bases, the module's removal is currently not scheduled.
2106
2106
2107
2107
* The :mod: `formatter ` module is pending deprecation and is slated for removal
@@ -2300,7 +2300,7 @@ Changes in the Python API
2300
2300
then you can see if the module's ``__spec__.location `` is set to ``'frozen' ``,
2301
2301
check if the loader is a subclass of
2302
2302
: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 `.
2304
2304
2305
2305
* :func: `py_compile.compile ` now raises :exc: `FileExistsError ` if the file path
2306
2306
it would write to is a symlink or a non-regular file. This is to act as a
0 commit comments