You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
support utf-8 in py3
This commit is contained in:
@@ -40,10 +40,9 @@ def _get_outstream(outfile):
|
||||
except OSError:
|
||||
pass
|
||||
if PYTHON_VERSION < 3.0:
|
||||
kw = {'mode':'wb'}
|
||||
return open(outfile, mode='wb')
|
||||
else:
|
||||
kw= = {'mode':'w', 'encoding':'utf-8'}
|
||||
return open(outfile, **kw)
|
||||
return open(outfile, mode='w', encoding='utf-8')
|
||||
|
||||
def decompile(
|
||||
bytecode_version, co, out=None, showasm=None, showast=False,
|
||||
|
Reference in New Issue
Block a user