This commit is contained in:
Kovid Goyal 2014-06-23 22:11:01 +05:30
parent 9e8d51359f
commit 34c021a1f0

View File

@ -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
################################################################################