Split out comprehension code..

sync with decompile a little better
This commit is contained in:
rocky
2022-04-17 10:52:56 -04:00
parent 1c1752d6d6
commit f8ae674890
4 changed files with 441 additions and 371 deletions

View File

@@ -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: