Use regular 'w' mode when writing text files for py3 compatibility.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user