mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 03:44:41 +02:00
Fix #1870631 [Error when attempting to send book to Nook (MTP Driver - Python 3)](https://bugs.launchpad.net/calibre/+bug/1870631)
This commit is contained in:
parent
9c2053ba9c
commit
fba65c2345
1 changed files with 1 additions and 1 deletions
|
|
@ -373,7 +373,7 @@ def create_folder(self, parent, name):
|
|||
e = parent.folder_named(name)
|
||||
if e is not None:
|
||||
return e
|
||||
ename = name.encode('utf-8') if isinstance(name, unicode_type) else name
|
||||
ename = name if ispy3 else as_bytes(name)
|
||||
sid, pid = parent.storage_id, parent.object_id
|
||||
if pid == sid:
|
||||
pid = 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue