You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
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:
@@ -38,7 +38,7 @@ def _get_outstream(outfile):
|
|||||||
os.makedirs(dir)
|
os.makedirs(dir)
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
return open(outfile, 'w')
|
return open(outfile, 'wb')
|
||||||
|
|
||||||
def decompile(
|
def decompile(
|
||||||
bytecode_version, co, out=None, showasm=None, showast=False,
|
bytecode_version, co, out=None, showasm=None, showast=False,
|
||||||
|
Reference in New Issue
Block a user