This commit is contained in:
Miroslav Stampar
2019-07-10 13:49:41 +02:00
parent e10a96610d
commit 752aed2986
3 changed files with 3 additions and 3 deletions

View File

@@ -617,7 +617,7 @@ class Dump(object):
warnMsg = "writing binary ('%s') content to file '%s' " % (mimetype, filepath)
logger.warn(warnMsg)
with open(filepath, "wb") as f:
with openFile(filepath, "w+b", None) as f:
_ = safechardecode(value, True)
f.write(_)