commit | 8d8251a9b13e0290848bb4e2b501c04a24cebb65 | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Fri Jun 10 04:16:57 2022 -0700 |
committer | GitHub <noreply@github.com> | Fri Jun 10 04:16:57 2022 -0700 |
tree | acd7f826edb423cf0534df193f5f1843888a96c4 | |
parent | 2139583bf9350289cf137848c123f538ae03c691 [diff] |
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>