You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Python3 postional arguments. Clean up code more along the lines of uncompyle3.
This commit is contained in:
@@ -38,7 +38,7 @@ def check_object_path(path):
|
||||
pass
|
||||
pass
|
||||
basename = os.path.basename(path)[0:-3]
|
||||
spath = path if PYTHON3 else path.decude('utf-8')
|
||||
spath = path if PYTHON3 else path.decode('utf-8')
|
||||
path = tempfile.mkstemp(prefix=basename + '-',
|
||||
suffix='.pyc', text=False)[1]
|
||||
py_compile.compile(spath, cfile=path)
|
||||
|
Reference in New Issue
Block a user