mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3 compat
This commit is contained in:
parent
5e783de560
commit
388165f824
@ -35,7 +35,7 @@ def points_for_word(w):
|
|||||||
w = w.lower()
|
w = w.lower()
|
||||||
ans = points_for_word.cache.get(w)
|
ans = points_for_word.cache.get(w)
|
||||||
if ans is None:
|
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
|
points_for_word.cache[w] = ans
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user