This commit is contained in:
Bernardo Damele 2013-03-12 22:16:42 +00:00
parent 2f43c3eb9b
commit dea62189b2

View File

@ -817,7 +817,7 @@ def dataToOutFile(filename, data):
retVal = None retVal = None
if data: if data:
retVal = "%s%s%s" % (conf.filePath, os.sep, filePathToString(filename)) retVal = "%s%s%s" % (conf.filePath, os.sep, filePathToSafeString(filename))
with codecs.open(retVal, "wb", UNICODE_ENCODING) as f: with codecs.open(retVal, "wb", UNICODE_ENCODING) as f:
f.write(data) f.write(data)