py3 compat

This commit is contained in:
Kovid Goyal
2020-07-06 08:42:07 +05:30
parent 5e783de560
commit 388165f824
+1 -1
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