summaryrefslogtreecommitdiff
path: root/unrpyc
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2013-08-20 13:14:03 -0400
committerAlex Xu <alex_y_xu@yahoo.ca>2013-08-20 13:14:03 -0400
commite4c006b866a6d9b0ea34e7cfd8e3510168f535a6 (patch)
tree1a4a46c4c5f7cfb9f1a58b0e6196b5b7bbdcabba /unrpyc
parentf5a6c301cc9a277f024563ea656f3fe49aa89834 (diff)
downloadhtml5ks-e4c006b866a6d9b0ea34e7cfd8e3510168f535a6.tar.xz
html5ks-e4c006b866a6d9b0ea34e7cfd8e3510168f535a6.zip
work on i18n
Diffstat (limited to 'unrpyc')
-rw-r--r--unrpyc/decompiler.py4
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