Use binary format for atomicWrite

This commit is contained in:
shortcutme 2019-03-15 23:49:55 +01:00
parent c55d69d587
commit f5bc26e9fe
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -12,7 +12,7 @@ import gevent
from Config import config
def atomicWrite(dest, content, mode="w"):
def atomicWrite(dest, content, mode="wb"):
try:
with open(dest + "-tmpnew", mode) as f:
f.write(content)