You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
simplify withas (for now)
This commit is contained in:
@@ -429,6 +429,10 @@ TABLE_DIRECT = {
|
||||
"whileelsestmt2": ("%|while %c:\n%+%c%-%|else:\n%+%c%-\n\n", 1, 2, -3),
|
||||
"whileelselaststmt": ("%|while %c:\n%+%c%-%|else:\n%+%c%-", 1, 2, -2),
|
||||
|
||||
# If there are situations where we need "with ... as ()"
|
||||
# We may need to customize this in n_withasstmt
|
||||
"withasstmt": ("%|with %c as %c:\n%+%c%-", 0, 2, 3),
|
||||
|
||||
"expr_stmt": (
|
||||
"%|%p\n",
|
||||
# When a statement contains only a named_expr (:=)
|
||||
|
Reference in New Issue
Block a user