summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-05-05 16:53:07 (GMT)
committerGitHub <noreply@github.com>2023-05-05 16:53:07 (GMT)
commita0df9ee8fc77443510ab7e9ba8fd830f255a8fec (patch)
tree2af48b491e6dcd471fd16f04e6ae87a85b1097cd /Python/traceback.c
parent45a9e3834a6ed20ee250e2e5a8583dffcef0eb73 (diff)
downloadcpython-a0df9ee8fc77443510ab7e9ba8fd830f255a8fec.zip
cpython-a0df9ee8fc77443510ab7e9ba8fd830f255a8fec.tar.gz
cpython-a0df9ee8fc77443510ab7e9ba8fd830f255a8fec.tar.bz2
GH-96803: Add three C-API functions to make _PyInterpreterFrame less opaque for users of PEP 523. (GH-96849)
Diffstat (limited to 'Python/traceback.c')
-rw-r--r--Python/traceback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index 097f69c..b247954 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -1180,7 +1180,7 @@ dump_frame(int fd, _PyInterpreterFrame *frame)
PUTS(fd, "???");
}
- int lineno = _PyInterpreterFrame_GetLine(frame);
+ int lineno = PyUnstable_InterpreterFrame_GetLine(frame);
PUTS(fd, ", line ");
if (lineno >= 0) {
_Py_DumpDecimal(fd, (size_t)lineno);