]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99300: Use Py_NewRef() in Doc/ directory (#99480)
authorVictor Stinner <vstinner@python.org>
Mon, 14 Nov 2022 17:49:14 +0000 (18:49 +0100)
committerGitHub <noreply@github.com>
Mon, 14 Nov 2022 17:49:14 +0000 (18:49 +0100)
commit1089bdc81aecf6adaf636547d4cf3949ec5d8d2c
tree7bcc940b1dae8b9a1df2f8bbb1dd56af4247b9af
parent65dd745f1a343dd80f5e612736f36200631f2840
gh-99300: Use Py_NewRef() in Doc/ directory  (#99480)

Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and
Py_XNewRef() in test C files of the Doc/ directory.

Replace PyModule_AddObject() with PyModule_AddObjectRef() to simplify
reference counting.
Doc/includes/custom2.c
Doc/includes/custom3.c
Doc/includes/custom4.c