mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 06:06:09 +01:00
py3 compat
This commit is contained in:
parent
f4941219b9
commit
4ee889d3d9
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue