From 63167acd728062a200408dc3ce91e5356f15a29d Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Wed, 30 Dec 2020 13:41:59 -0600 Subject: [PATCH] Remove reference to PyNode_ListTree for Python 3.10 (#153) Fixes #150 Co-authored-by: hauntsaninja <> --- ast27/Parser/parser.c | 16 ---------------- ast3/Parser/parser.c | 16 ---------------- 2 files changed, 32 deletions(-) diff --git a/ast27/Parser/parser.c b/ast27/Parser/parser.c index d4367537..e2d30c38 100644 --- a/ast27/Parser/parser.c +++ b/ast27/Parser/parser.c @@ -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 */ /* diff --git a/ast3/Parser/parser.c b/ast3/Parser/parser.c index 102a1698..1d8900ba 100644 --- a/ast3/Parser/parser.c +++ b/ast3/Parser/parser.c @@ -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 */ /*