mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3 compat
This commit is contained in:
parent
0c838d4a40
commit
04c2ccf6b2
@ -855,8 +855,7 @@ def install_icon_theme(theme, f):
|
||||
theme['files'].add(name)
|
||||
|
||||
theme['files'] = tuple(theme['files'])
|
||||
buf = BytesIO()
|
||||
json.dump(theme, buf, indent=2)
|
||||
buf = BytesIO(as_bytes(json.dumps(theme, indent=2)))
|
||||
buf.seek(0)
|
||||
safe_copy(buf, metadata_file)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user