mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
...
This commit is contained in:
parent
9e8d51359f
commit
34c021a1f0
@ -282,10 +282,7 @@ def partition_by_first_letter(items, reverse=False, key=lambda x:x):
|
||||
string_length = _icu.string_length if is_narrow_build else len
|
||||
|
||||
# Return the number of UTF-16 codepoints in a string
|
||||
try:
|
||||
utf16_length = len if is_narrow_build else _icu.utf16_length
|
||||
except AttributeError:
|
||||
utf16_length = len # People running from source
|
||||
utf16_length = len if is_narrow_build else _icu.utf16_length
|
||||
|
||||
################################################################################
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user