summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_exceptions.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-01-22 20:48:56 (GMT)
committerGitHub <noreply@github.com>2022-01-22 20:48:56 (GMT)
commitf1bcdeaca6e912a2bec1fbcff76cc49e7f761d38 (patch)
tree21cf3d580c398760d89d22242b11a890a831a552 /Include/internal/pycore_exceptions.h
parenta941e5927f7f2540946813606c61c6aea38db426 (diff)
downloadcpython-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.h2
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 *);