You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
More 2.6.9 bugs fixed
* break loop parsing bug * ifelsestmt semantic-action bug in handling else
This commit is contained in:
@@ -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]
|
||||
|
||||
|
Reference in New Issue
Block a user