]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-90763: Modernise xx template module initialisation (GH-93078)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 10 Jun 2022 11:16:57 +0000 (04:16 -0700)
committerGitHub <noreply@github.com>
Fri, 10 Jun 2022 11:16:57 +0000 (04:16 -0700)
commit8d8251a9b13e0290848bb4e2b501c04a24cebb65
treeacd7f826edb423cf0534df193f5f1843888a96c4
parent2139583bf9350289cf137848c123f538ae03c691
gh-90763: Modernise xx template module initialisation (GH-93078)

Use C APIs such as PyModule_AddType instead of PyModule_AddObject.
Also remove incorrect module decrefs if module fails to initialise.
(cherry picked from commit a87c9b538fbfc42883417c4d5e69f1a5922690e3)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Modules/xxlimited_35.c
Modules/xxmodule.c