summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-25 15:22:00 (GMT)
committerGitHub <noreply@github.com>2022-02-25 15:22:00 (GMT)
commit87af12bff33b3e7546fa26158b7d8680ecb6ecec (patch)
treee51866d5b4f968074beadf3ada9da856601a43d4 /Python/traceback.c
parentf780d9690f1a009a56ac0c653ec9608e6b2aeff4 (diff)
downloadcpython-87af12bff33b3e7546fa26158b7d8680ecb6ecec.zip
cpython-87af12bff33b3e7546fa26158b7d8680ecb6ecec.tar.gz
cpython-87af12bff33b3e7546fa26158b7d8680ecb6ecec.tar.bz2
bpo-46836: Rename InterpreterFrame to _PyInterpreterFrame (GH-31583)
Rename also struct _interpreter_frame to struct _PyInterpreterFrame. Reduce risk of name conflicts if a project includes pycore_frame.h.
Diffstat (limited to 'Python/traceback.c')
-rw-r--r--Python/traceback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index f2ae38e..6a721cf 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -1167,7 +1167,7 @@ done:
This function is signal safe. */
static void
-dump_frame(int fd, InterpreterFrame *frame)
+dump_frame(int fd, _PyInterpreterFrame *frame)
{
PyCodeObject *code = frame->f_code;
PUTS(fd, " File ");
@@ -1205,7 +1205,7 @@ dump_frame(int fd, InterpreterFrame *frame)
static void
dump_traceback(int fd, PyThreadState *tstate, int write_header)
{
- InterpreterFrame *frame;
+ _PyInterpreterFrame *frame;
unsigned int depth;
if (write_header) {