Use binary format for atomicWrite
This commit is contained in:
parent
c55d69d587
commit
f5bc26e9fe
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue