SIGN IN SIGN UP

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>
M
Miss Islington (bot) committed
8d8251a9b13e0290848bb4e2b501c04a24cebb65
Parent: 2139583
Committed by GitHub <noreply@github.com> on 6/10/2022, 11:16:57 AM