◐ Shell
clean mode source ↗

gh-98040: Fix importbench: use types.ModuleType() by vstinner · Pull Request #105743 · python/cpython

Replace removed imp.new_module(name) with types.ModuleType(name).

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jun 13, 2023
)

Replace removed imp.new_module(name) with types.ModuleType(name).
(cherry picked from commit 457a459)

Co-authored-by: Victor Stinner <vstinner@python.org>

vstinner added a commit that referenced this pull request

Jun 13, 2023
…105754)

gh-98040: Fix importbench: use types.ModuleType() (GH-105743)

Replace removed imp.new_module(name) with types.ModuleType(name).
(cherry picked from commit 457a459)

Co-authored-by: Victor Stinner <vstinner@python.org>