rocky / python-uncompyle6

A cross-version Python bytecode decompiler
GNU General Public License v3.0
3.74k stars 408 forks source link

Tentative fix for issue #437. #440

Closed andrem-eberle closed 1 year ago

andrem-eberle commented 1 year ago

I followed your guidelines, and reworked ifelsestmt.py a bit. I just added another set of rules that is then checked for offsets, it fixed this particular issue (#437) at least. I know the tests in test/ aren't great, but at least they aren't failing :)

I ran the tests on test/stdlib/runtests.sh also (Python 2.7) but I keep getting an error, which I included in issue #439. I might look into that one also since I am working on it.

rocky commented 1 year ago

LGTM - this was the kind of change I was expecting in the back of my mind. Thanks!