Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Remove reference to PyNode_ListTree for Python 3.10 #153

Merged
merged 1 commit into from
Dec 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions ast27/Parser/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,22 +371,6 @@ showtree(grammar *g, node *n)
printf("? ");
}

void
printtree(parser_state *ps)
{
if (Py_DebugFlag) {
printf("Parse tree:\n");
dumptree(ps->p_grammar, ps->p_tree);
printf("\n");
printf("Tokens:\n");
showtree(ps->p_grammar, ps->p_tree);
printf("\n");
}
printf("Listing:\n");
PyNode_ListTree(ps->p_tree);
printf("\n");
}

#endif /* Py_DEBUG */

/*
Expand Down
16 changes: 0 additions & 16 deletions ast3/Parser/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,22 +382,6 @@ showtree(grammar *g, node *n)
printf("? ");
}

void
printtree(parser_state *ps)
{
if (Py_DebugFlag) {
printf("Parse tree:\n");
dumptree(ps->p_grammar, ps->p_tree);
printf("\n");
printf("Tokens:\n");
showtree(ps->p_grammar, ps->p_tree);
printf("\n");
}
printf("Listing:\n");
PyNode_ListTree(ps->p_tree);
printf("\n");
}

#endif /* Py_DEBUG */

/*
Expand Down