diff options
Diffstat (limited to 'unrpyc')
-rw-r--r-- | unrpyc/decompiler.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unrpyc/decompiler.py b/unrpyc/decompiler.py index 38fbd52..9180098 100644 --- a/unrpyc/decompiler.py +++ b/unrpyc/decompiler.py @@ -327,6 +327,10 @@ class PrintRenPython(python_ast.NodeVisitor): def visit_keyword(self, node): return self.visit(node.value) + def visit(self, node): + self.f.write(python_ast.dump(node)) + return super().visit(node) + def print_Python(f, stmt, indent_level, early=False): code_src = stmt.code.source |