This commit is contained in:
Kovid Goyal 2014-05-12 16:40:29 +05:30
parent 91f14b07ab
commit fd17470464

View File

@ -279,10 +279,7 @@ def partition_by_first_letter(items, reverse=False, key=lambda x:x):
return ans
# Return the number of unicode codepoints in a string
try:
string_length = _icu.string_length if is_narrow_build else len
except AttributeError:
string_length = len # Somebody running from source with a binary that has not been updated
################################################################################