Fix bug in detecting 2.7 except-handler ranges

This commit is contained in:
rocky
2020-07-05 22:11:37 -04:00
parent 8de663ff52
commit 3dc6c31ae5
5 changed files with 23 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ from uncompyle6.parsers.parse2 import Python2Parser
from uncompyle6.parsers.reducecheck import (
or_check,
tryelsestmt,
except_handler,
)
class Python27Parser(Python2Parser):
@@ -230,6 +231,7 @@ class Python27Parser(Python2Parser):
# FIXME: Put more in this table
self.reduce_check_table = {
# "ifelsestmt": ifelsestmt,
"except_handler": except_handler,
"or": or_check,
"tryelsestmt": tryelsestmt,
"tryelsestmtl": tryelsestmt,