mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
py3 compat
This commit is contained in:
parent
52c7621484
commit
28a07b0727
@ -135,7 +135,7 @@ def book_to_json(ctx, rd, db, book_id,
|
|||||||
for device_class in device_plugins():
|
for device_class in device_plugins():
|
||||||
if device_class.__class__.__name__ == device_for_template:
|
if device_class.__class__.__name__ == device_for_template:
|
||||||
template = device_class.save_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)
|
template, sanitize, path_type=posixpath)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user