diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-10 04:16:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 04:16:57 -0700 |
commit | 8d8251a9b13e0290848bb4e2b501c04a24cebb65 (patch) | |
tree | acd7f826edb423cf0534df193f5f1843888a96c4 /Lib/test/test_source_encoding.py | |
parent | 2139583bf9350289cf137848c123f538ae03c691 (diff) | |
download | cpython-git-8d8251a9b13e0290848bb4e2b501c04a24cebb65.tar.gz |
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>
Diffstat (limited to 'Lib/test/test_source_encoding.py')
0 files changed, 0 insertions, 0 deletions