WIP Grammar changes - reinstatng COME_FROMs around ignore_if's

This commit is contained in:
rocky
2016-11-15 17:02:41 -05:00
parent bfe7e7777d
commit 9e3026bd78
3 changed files with 9 additions and 4 deletions

View File

@@ -879,7 +879,7 @@ class Scanner2(scan.Scanner):
and self.code[offset+4] == self.opc.END_FINALLY))):
# FIXME: rocky: I think we need something like this...
if offset not in set(self.ignore_if):
if offset not in set(self.ignore_if) or self.version == 2.7:
targets[label] = targets.get(label, []) + [offset]
# targets[label] = targets.get(label, []) + [offset]
pass