summaryrefslogtreecommitdiffstats
path: root/Python/initconfig.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-02-28 11:50:52 (GMT)
committerGitHub <noreply@github.com>2023-02-28 11:50:52 (GMT)
commit4c87537efb5fd28b4e4ee9631076ed5953720156 (patch)
tree8c8bf4b1c849bc47dc28561d0653c95b33e357db /Python/initconfig.c
parent85b1fc1fc5a2e49d521382eaf5e7793175d00371 (diff)
downloadcpython-4c87537efb5fd28b4e4ee9631076ed5953720156.zip
cpython-4c87537efb5fd28b4e4ee9631076ed5953720156.tar.gz
cpython-4c87537efb5fd28b4e4ee9631076ed5953720156.tar.bz2
gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives (in Python/) (#102193)
Diffstat (limited to 'Python/initconfig.c')
-rw-r--r--Python/initconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/initconfig.c b/Python/initconfig.c
index deec805..db7f11e 100644
--- a/Python/initconfig.c
+++ b/Python/initconfig.c
@@ -5,7 +5,7 @@
#include "pycore_interp.h" // _PyInterpreterState.runtime
#include "pycore_long.h" // _PY_LONG_MAX_STR_DIGITS_THRESHOLD
#include "pycore_pathconfig.h" // _Py_path_config
-#include "pycore_pyerrors.h" // _PyErr_Fetch()
+#include "pycore_pyerrors.h" // _PyErr_GetRaisedException()
#include "pycore_pylifecycle.h" // _Py_PreInitializeFromConfig()
#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
#include "pycore_pystate.h" // _PyThreadState_GET()