support utf-8 chars

This commit is contained in:
byehack
2019-01-16 19:36:13 +03:30
committed by GitHub
parent 763c599c16
commit ceae035c70

View File

@@ -43,7 +43,7 @@ def _get_outstream(outfile):
mode = 'wb'
else:
mode = 'w'
return open(outfile, mode)
return open(outfile, mode, encoding="utf-8")
def decompile(
bytecode_version, co, out=None, showasm=None, showast=False,