summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-03-19 15:17:59 +0000
committerGitHub <noreply@github.com>2023-03-19 15:17:59 +0000
commitad77b80b0542a71eff54d1a193bd044a71e8e00b (patch)
tree088716f4cb0871b694facae033b14dcbdc5a6b44 /Python/pythonrun.c
parent3adb23a17d25e36bd80874e860835182d851623f (diff)
downloadcpython-git-ad77b80b0542a71eff54d1a193bd044a71e8e00b.tar.gz
gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives (#102816)
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 6ea185a1b7..b16d3f53f8 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -18,7 +18,7 @@
#include "pycore_interp.h" // PyInterpreterState.importlib
#include "pycore_object.h" // _PyDebug_PrintTotalRefs()
#include "pycore_parser.h" // _PyParser_ASTFromString()
-#include "pycore_pyerrors.h" // _PyErr_Fetch, _Py_Offer_Suggestions
+#include "pycore_pyerrors.h" // _PyErr_GetRaisedException, _Py_Offer_Suggestions
#include "pycore_pylifecycle.h" // _Py_UnhandledKeyboardInterrupt
#include "pycore_pystate.h" // _PyInterpreterState_GET()
#include "pycore_sysmodule.h" // _PySys_Audit()