Python code output should be binary...

as it may contain weird characters in strings. in 3.6 or so

r
This commit is contained in:
rocky
2018-03-21 00:17:42 -04:00
parent cf5445c202
commit 0aa7a7c223

View File

@@ -38,7 +38,7 @@ def _get_outstream(outfile):
os.makedirs(dir)
except OSError:
pass
return open(outfile, 'w')
return open(outfile, 'wb')
def decompile(
bytecode_version, co, out=None, showasm=None, showast=False,