mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7852 (Error communicating with device (Sony PRS-600))
This commit is contained in:
parent
8dd120a574
commit
44ca3ea808
@ -241,7 +241,8 @@ class CollectionsBookList(BookList):
|
||||
if y is None:
|
||||
return -1
|
||||
if isinstance(x, (unicode, str)):
|
||||
c = strcmp(force_unicode(x), force_unicode(y))
|
||||
c = strcmp(unicode(force_unicode(x)),
|
||||
unicode(force_unicode(y)))
|
||||
else:
|
||||
c = cmp(x, y)
|
||||
if c != 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user