Spell module: fix check of UTF8 strings in pyaspell
This commit is contained in:
parent
8aaf3bd6dc
commit
9495e43cc0
2 changed files with 19 additions and 17 deletions
|
|
@ -45,6 +45,8 @@ def cmd_spell(msg):
|
|||
def check_spell(word, lang='fr'):
|
||||
a = Aspell(("lang", lang))
|
||||
if a.check(word):
|
||||
return True
|
||||
ret = True
|
||||
else:
|
||||
return a.suggest(word)
|
||||
ret = a.suggest(word)
|
||||
a.close()
|
||||
return ret
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue