This commit is contained in:
Kovid Goyal 2016-04-13 10:44:24 +05:30
parent d8bfb8c8b1
commit 9a2dc518ad

View File

@ -231,11 +231,7 @@ primary_startswith = _make_func(_strcmp_template, 'primary_startswith', collator
safe_chr = _icu.chr
try:
ord_string = _icu.ord_string
except AttributeError:
# People running from source
ord_string = lambda x: tuple(map(ord, x))
def character_name(string):
try: