diff options
author | Victor Stinner <vstinner@python.org> | 2022-01-22 20:48:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 20:48:56 (GMT) |
commit | f1bcdeaca6e912a2bec1fbcff76cc49e7f761d38 (patch) | |
tree | 21cf3d580c398760d89d22242b11a890a831a552 /Include/internal/pycore_exceptions.h | |
parent | a941e5927f7f2540946813606c61c6aea38db426 (diff) | |
download | cpython-f1bcdeaca6e912a2bec1fbcff76cc49e7f761d38.zip cpython-f1bcdeaca6e912a2bec1fbcff76cc49e7f761d38.tar.gz cpython-f1bcdeaca6e912a2bec1fbcff76cc49e7f761d38.tar.bz2 |
bpo-46417: Factorize _PyExc_InitTypes() code (GH-30804)
Add 'static_exceptions' list to factorize code between
_PyExc_InitTypes() and _PyBuiltins_AddExceptions().
_PyExc_InitTypes() does nothing if it's not the main interpreter.
Sort exceptions in Lib/test/exception_hierarchy.txt.
Diffstat (limited to 'Include/internal/pycore_exceptions.h')
-rw-r--r-- | Include/internal/pycore_exceptions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_exceptions.h b/Include/internal/pycore_exceptions.h index 1651966..4a9df70 100644 --- a/Include/internal/pycore_exceptions.h +++ b/Include/internal/pycore_exceptions.h @@ -13,7 +13,7 @@ extern "C" { extern PyStatus _PyExc_InitState(PyInterpreterState *); extern PyStatus _PyExc_InitGlobalObjects(PyInterpreterState *); -extern PyStatus _PyExc_InitTypes(PyInterpreterState *); +extern int _PyExc_InitTypes(PyInterpreterState *); extern void _PyExc_Fini(PyInterpreterState *); |