]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-98040: Fix importbench: use types.ModuleType() (GH-105743) (#105754)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 13 Jun 2023 22:59:02 +0000 (15:59 -0700)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2023 22:59:02 +0000 (22:59 +0000)
commit51b533ec5049593dc009383226f935cf5181484c
tree7610ad3d42316413f4a6346ceb5aea1935a80fed
parent27426d89835ef6e2f28c5b48d553826daa01120b
[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>
Doc/whatsnew/3.12.rst
Tools/importbench/importbench.py