Fix some 2.3 bugs; add more 2.3-6. tests

This commit is contained in:
rocky
2016-07-09 16:41:09 -04:00
parent 047c95a1e5
commit 65b9ecee31
241 changed files with 8 additions and 55 deletions

View File

@@ -215,7 +215,7 @@ class Scanner26(scan.Scanner2):
# FIXME: this is a hack to catch stuff like:
# if x: continue
# the "continue" is not on a new line.
if tokens[-1].type == 'JUMP_BACK':
if len(tokens) and tokens[-1].type == 'JUMP_BACK':
tokens[-1].type = intern('CONTINUE')
elif op in self.opc.hasjabs: