More 2.6.9 bugs fixed

* break loop parsing bug
* ifelsestmt semantic-action bug in handling else
This commit is contained in:
rocky
2016-06-30 21:41:04 -04:00
parent d87b5fe34c
commit 261c60efd9
4 changed files with 24 additions and 7 deletions

View File

@@ -850,10 +850,7 @@ class SourceWalker(GenericASTTraversal, object):
self.prune() # stop recursing
def n_ifelsestmt(self, node, preprocess=False):
if node[2].type.startswith('else_suite'):
else_suite = node[2]
elif node[3].type.startswith('else_suite'):
else_suite = node[3]
else_suite = node[3]
n = else_suite[0]