py3 compat

This commit is contained in:
Kovid Goyal 2020-07-06 08:42:07 +05:30
parent 5e783de560
commit 388165f824
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -35,7 +35,7 @@ def points_for_word(w):
w = w.lower()
ans = points_for_word.cache.get(w)
if ans is None:
ans = plugins['unicode_names'][0].codepoints_for_word(w.encode('utf-8')) | html_entities().get(w, set())
ans = plugins['unicode_names'][0].codepoints_for_word(w) | html_entities().get(w, set())
points_for_word.cache[w] = ans
return ans