]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108082: Use PyErr_FormatUnraisable() (GH-111580)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 2 Nov 2023 09:16:34 +0000 (11:16 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Nov 2023 09:16:34 +0000 (09:16 +0000)
commit970e719a7a829bddc647bbaa668dd8603abdddef
tree92eeeba01687f6e02482315db653ce57f3b10e4b
parenta12f624a9dc1c44bb20a20b13fd164c14b987892
gh-108082: Use PyErr_FormatUnraisable() (GH-111580)

Replace most of calls of _PyErr_WriteUnraisableMsg() and some
calls of PyErr_WriteUnraisable(NULL) with PyErr_FormatUnraisable().

Co-authored-by: Victor Stinner <vstinner@python.org>
18 files changed:
Lib/test/test_capi/test_watchers.py
Lib/test/test_cmd_line.py
Modules/_ctypes/_ctypes.c
Modules/_lsprof.c
Modules/gcmodule.c
Modules/getpath.c
Modules/signalmodule.c
Objects/codeobject.c
Objects/dictobject.c
Objects/funcobject.c
Objects/moduleobject.c
Objects/typeobject.c
Python/ceval.c
Python/compile.c
Python/import.c
Python/perf_trampoline.c
Python/pylifecycle.c
Python/pythonrun.c