You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Split out comprehension code..
sync with decompile a little better
This commit is contained in:
@@ -147,6 +147,10 @@ def gen_function_parens_adjust(mapping_key, node):
|
||||
pass
|
||||
return
|
||||
|
||||
def is_lambda_mode(compile_mode: str) -> bool:
|
||||
return compile_mode in ("dictcomp", "genexpr", "lambda", "listcomp", "setcomp")
|
||||
|
||||
|
||||
def print_docstring(self, indent, docstring):
|
||||
quote = '"""'
|
||||
if docstring.find(quote) >= 0:
|
||||
|
Reference in New Issue
Block a user