mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
py3 compat
This commit is contained in:
parent
f4941219b9
commit
4ee889d3d9
@ -272,7 +272,7 @@ def atomic_write(base, name, content):
|
||||
name = os.path.join(base, name)
|
||||
tname = name + '.tmp'
|
||||
with lopen(tname, 'wb') as f:
|
||||
f.write(content)
|
||||
f.write(as_bytes(content))
|
||||
atomic_rename(tname, name)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user