Skip to content

[3.12] gh-98040: Fix importbench: use types.ModuleType() (GH-105743)#105754

Merged
vstinner merged 1 commit intopython:3.12from
miss-islington:backport-457a459-3.12
Jun 13, 2023
Merged

[3.12] gh-98040: Fix importbench: use types.ModuleType() (GH-105743)#105754
vstinner merged 1 commit intopython:3.12from
miss-islington:backport-457a459-3.12

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented 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


📚 Documentation preview 📚: https://cpython-previews--105754.org.readthedocs.build/

)

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

Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants