Forelse reduction checks on 2.6

This commit is contained in:
rocky
2020-07-06 09:18:13 -04:00
parent 084e183577
commit ef59b9c304
6 changed files with 46 additions and 12 deletions

View File

@@ -6,6 +6,11 @@ def except_handler(self, lhs, n, rule, ast, tokens, first, last):
# print(tokens[t])
# print("=" * 30)
# FIXME: Figure out why this doesn't work on
# bytecode-1.4/anydbm.pyc
if self.version != 1.4:
return False
# Make sure come froms all come from within "except_handler".
if end_token != "COME_FROM":
return False