summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-06-13 22:59:02 (GMT)
committerGitHub <noreply@github.com>2023-06-13 22:59:02 (GMT)
commit51b533ec5049593dc009383226f935cf5181484c (patch)
tree7610ad3d42316413f4a6346ceb5aea1935a80fed /Doc/whatsnew
parent27426d89835ef6e2f28c5b48d553826daa01120b (diff)
downloadcpython-51b533ec5049593dc009383226f935cf5181484c.zip
cpython-51b533ec5049593dc009383226f935cf5181484c.tar.gz
cpython-51b533ec5049593dc009383226f935cf5181484c.tar.bz2
[3.12] gh-98040: Fix importbench: use types.ModuleType() (GH-105743) (#105754)
gh-98040: Fix importbench: use types.ModuleType() (GH-105743) Replace removed imp.new_module(name) with types.ModuleType(name). (cherry picked from commit 457a459c7804950d4c27a243b176eb933ec87a06) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.12.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index fcfd034..4849f8c 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -1368,6 +1368,8 @@ Removed
* The :mod:`!imp` module has been removed. (Contributed by Barry Warsaw in
:gh:`98040`.)
+ * Replace ``imp.new_module(name)`` with ``types.ModuleType(name)``.
+
* Removed the ``suspicious`` rule from the documentation Makefile, and
removed ``Doc/tools/rstlint.py``, both in favor of `sphinx-lint
<https://github.com/sphinx-contrib/sphinx-lint>`_.