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

Commit

Permalink
Remove reference to PyNode_ListTree for Python 3.10 (#153)
Browse files Browse the repository at this point in the history
Fixes #150

Co-authored-by: hauntsaninja <>
  • Loading branch information
hauntsaninja authored Dec 30, 2020
1 parent 90342f0 commit 63167ac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
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

0 comments on commit 63167ac

Please sign in to comment.