Add triple compare from 3.3 into 3.2

This commit is contained in:
rocky
2017-11-23 13:43:19 -05:00
parent 7548364e8e
commit a94b844988
4 changed files with 7 additions and 2 deletions

View File

@@ -141,6 +141,10 @@ class Python35Parser(Python34Parser):
"""
def add_custom_rules(self, tokens, customize):
self.remove_rules("""
# FIXME: should this be in 3.3?
whileTruestmt ::= SETUP_LOOP return_stmts COME_FROM_LOOP
""")
super(Python35Parser, self).add_custom_rules(tokens, customize)
for i, token in enumerate(tokens):
opname = token.kind