Skip to content

Commit 7f3c1fa

Browse files
committed
Tentative fix for issue #437. I added a new set of rules in ifelsestmt.py to check against for offsets. Seems to have fixed current issue. The result output is switching nested if-else-if-else-etc to a chain of if-elif-elif now, but semantically seems correct.
1 parent f76c35c commit 7f3c1fa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

uncompyle6/parsers/reducecheck/ifelsestmt.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@
8181
"come_froms",
8282
),
8383
),
84+
(
85+
'ifelsestmtc',
86+
(
87+
'testexpr',
88+
'c_stmts_opt',
89+
'JUMP_FORWARD',
90+
'else_suite',
91+
'come_froms'
92+
),
93+
),
8494
(
8595
"ifelsestmt",
8696
(

0 commit comments

Comments
 (0)