py3 compat

This commit is contained in:
Kovid Goyal 2019-12-09 22:30:10 +05:30
parent 0c838d4a40
commit 04c2ccf6b2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)