You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 08:49:51 +08:00
2.7 tryelse rule check disambiguation.
This commit is contained in:
@@ -7,6 +7,8 @@ def tryelsestmt(self, lhs, n, rule, ast, tokens, first, last):
|
||||
# inside the except handler to the end. If that happens
|
||||
# then this is a "try" with no "else".
|
||||
except_handler = ast[3]
|
||||
if except_handler == "except_handler_else":
|
||||
except_handler = except_handler[0]
|
||||
if except_handler == "except_handler":
|
||||
|
||||
come_from = except_handler[-1]
|
||||
|
Reference in New Issue
Block a user