Python3 postional arguments. Clean up code more along the lines of uncompyle3.

This commit is contained in:
rocky
2015-12-18 17:07:35 -05:00
parent e5f58e8ecb
commit 347219a009
11 changed files with 143 additions and 116 deletions

View File

@@ -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)