py3 compat

This commit is contained in:
Kovid Goyal 2019-05-02 15:18:41 +05:30
parent 52c7621484
commit 28a07b0727
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -135,7 +135,7 @@ def book_to_json(ctx, rd, db, book_id,
for device_class in device_plugins():
if device_class.__class__.__name__ == device_for_template:
template = device_class.save_template()
data['_filename_'] = create_upload_path(mi, unicode(book_id),
data['_filename_'] = create_upload_path(mi, unicode_type(book_id),
template, sanitize, path_type=posixpath)
break