From e4c006b866a6d9b0ea34e7cfd8e3510168f535a6 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Tue, 20 Aug 2013 13:14:03 -0400 Subject: work on i18n --- unrpyc/decompiler.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'unrpyc') 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 -- cgit v1.2.3-70-g09d2