This commit is contained in:
Miroslav Stampar 2015-09-17 14:58:01 +02:00
parent c59ead36ce
commit 2cea977e12

View File

@ -3871,13 +3871,18 @@ def decloakToTemp(filename):
"""
content = decloak(filename)
_ = os.path.split(filename[:-1])[-1]
_ = utf8encode(os.path.split(filename[:-1])[-1])
prefix, suffix = os.path.splitext(_)
prefix = prefix.split(os.extsep)[0]
handle, filename = tempfile.mkstemp(prefix=prefix, suffix=suffix)
os.close(handle)
with open(filename, "w+b") as f:
f.write(content)
return filename
def prioritySortColumns(columns):