Use regular 'w' mode when writing text files for py3 compatibility.

This commit is contained in:
markus
2019-01-28 16:00:00 -08:00
committed by Yorik van Havre
parent 98d77f8caa
commit 58e25d463e
14 changed files with 14 additions and 14 deletions

View File

@@ -299,7 +299,7 @@ class ToolLibraryManager():
fext = os.path.splitext(name)[1].lower()
if fext != ext:
name = "{}{}".format(name, ext)
return (open(PathUtil.toUnicode(name), 'wb'), name)
return (open(PathUtil.toUnicode(name), 'w'), name)
if filename[1] == self.TooltableTypeXML:
fp,fname = openFileWithExtension(filename[0], '.xml')