Pypy 3.6 tolerance

This commit is contained in:
rocky
2019-10-30 11:41:22 -04:00
parent 86c1d12e69
commit eed4c1025b
2 changed files with 9 additions and 1 deletions

View File

@@ -1160,6 +1160,14 @@ class Python3Parser(PythonParser):
opname,
)
self.add_unique_rule(rule, opname, token.attr, customize)
if not PYTHON3 and self.is_pypy:
rule = "mkfunc ::= %s%s%s%s" % (
"expr " * stack_count,
"load_closure " * closure,
"LOAD_CODE LOAD_CONST ",
opname,
)
self.add_unique_rule(rule, opname, token.attr, customize)
if has_get_iter_call_function1:
rule_pat = (