pysource guard and another appveyor test

This commit is contained in:
rocky
2017-05-08 06:58:12 -04:00
parent a10914a645
commit 8d084ed358
3 changed files with 14 additions and 8 deletions

View File

@@ -531,11 +531,12 @@ class SourceWalker(GenericASTTraversal, object):
next_offset = self.scanner.next_offset(op, offset)
scanner = self.scanner
code = scanner.code
next_inst = code[next_offset]
if (scanner.opc.opname[next_inst] == 'JUMP_ABSOLUTE'
and t.pattr == code[next_offset+1]):
# Suppress "continue"
self.prune()
if next_offset < len(code):
next_inst = code[next_offset]
if (scanner.opc.opname[next_inst] == 'JUMP_ABSOLUTE'
and t.pattr == code[next_offset+1]):
# Suppress "continue"
self.prune()
self.default(node)
def n_return_stmt(self, node):