Fix test_grammar.py for 2.4

This commit is contained in:
rocky
2020-01-12 11:28:37 -05:00
parent 7adfc9c2dc
commit 5b889bf4f3
2 changed files with 1 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ class TestGrammar(unittest.TestCase):
p = get_python_parser(PYTHON_VERSION, is_pypy=IS_PYPY)
(lhs, rhs, tokens,
right_recursive, dup_rhs) = p.check_sets()
expect_lhs = set(['expr1024', 'pos_arg'])
expect_lhs = set(['pos_arg', 'get_iter', 'attribute'])
unused_rhs = set(['list', 'call', 'mkfunc',
'mklambda',
'unpack',])

View File

@@ -25,8 +25,6 @@ If we succeed in creating a parse tree, then we have a Python program
that a later phase can turn into a sequence of ASCII text.
"""
from __future__ import print_function
from uncompyle6.parsers.reducecheck import (except_handler_else, tryelsestmt)
from uncompyle6.parser import PythonParser, PythonParserSingle, nop_func
from uncompyle6.parsers.treenode import SyntaxTree