Stronger 3.4 testing ...

parse3.py: remove unused grammar rule
This commit is contained in:
rocky
2017-11-15 03:33:05 -05:00
parent 63a43d0c93
commit 3a0f0557f7
2 changed files with 7 additions and 4 deletions

View File

@@ -147,7 +147,7 @@ check-bytecode-3.3:
#: Check deparsing Python 3.4 #: Check deparsing Python 3.4
check-bytecode-3.4: check-bytecode-3.4:
$(PYTHON) test_pythonlib.py --bytecode-3.4 $(PYTHON) test_pythonlib.py --bytecode-3.4 --weak-verify
#: Check deparsing Python 3.5 #: Check deparsing Python 3.5
check-bytecode-3.5: check-bytecode-3.5:

View File

@@ -888,9 +888,12 @@ class Python3Parser(PythonParser):
rule = ('mkfunc ::= %sload_closure load_genexpr %s' rule = ('mkfunc ::= %sload_closure load_genexpr %s'
% ('pos_arg ' * args_pos, opname)) % ('pos_arg ' * args_pos, opname))
self.add_unique_rule(rule, opname, token.attr, customize) self.add_unique_rule(rule, opname, token.attr, customize)
rule = ('mkfunc ::= %sload_closure LOAD_CONST %s'
% ('expr ' * args_pos, opname)) if self.version < 3.4:
self.add_unique_rule(rule, opname, token.attr, customize) rule = ('mkfunc ::= %sload_closure LOAD_CONST %s'
% ('expr ' * args_pos, opname))
self.add_unique_rule(rule, opname, token.attr, customize)
pass pass
self.check_reduce['augassign1'] = 'AST' self.check_reduce['augassign1'] = 'AST'
self.check_reduce['augassign2'] = 'AST' self.check_reduce['augassign2'] = 'AST'