Port over some recent decompyle3 3.8 fixes

This commit is contained in:
rocky
2022-06-26 04:26:15 -04:00
parent 7f798541f0
commit 85ba8352ba
7 changed files with 219 additions and 5 deletions

View File

@@ -66,6 +66,9 @@ def customize_for_version38(self, version):
(1, "c_suite_stmts_opt"),
(-2, "c_suite_stmts_opt"),
),
# Python 3.8 reverses the order of keys and items
# from all prior versions of Python.
"dict_comp_body": ("%c: %c", (0, "expr"), (1, "expr"),),
"except_cond1a": ("%|except %c:\n", (1, "expr"),),
"except_cond_as": (
"%|except %c as %c:\n",