From 4b82806d6cc98346f88ed385b36008eb410b6ac4 Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 15 Jun 2019 07:18:30 -0400 Subject: [PATCH] Flow control bites again. See related appveyor https://ci.appveyor.com/project/rocky/python-decompile3/builds/25301153/job/x0we0dpgb3apgk1v --- uncompyle6/parsers/parse37.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/uncompyle6/parsers/parse37.py b/uncompyle6/parsers/parse37.py index cc11439a..db004db5 100644 --- a/uncompyle6/parsers/parse37.py +++ b/uncompyle6/parsers/parse37.py @@ -79,6 +79,12 @@ class Python37Parser(Python36Parser): attribute37 ::= expr LOAD_METHOD expr ::= attribute37 + # long except clauses in a loop can sometimes cause a JUMP_BACK to turn into a + # JUMP_FORWARD to a JUMP_BACK. And when this happens there is an additional + # ELSE added to the except_suite. With better flow control perhaps we can + # sort this out better. + except_suite ::= c_stmts_opt POP_EXCEPT jump_except ELSE + # FIXME: generalize and specialize call ::= expr CALL_METHOD_0