From 033dd8af129f071dc41442ee1e1bd76da4162144 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Thu, 5 Sep 2013 18:21:27 +1200 Subject: [PATCH] please? --- plugins/spellcheck.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/spellcheck.py b/plugins/spellcheck.py index d784c81..246f4dd 100755 --- a/plugins/spellcheck.py +++ b/plugins/spellcheck.py @@ -1,5 +1,7 @@ -import enchant from util import hook +from enchant.checker import SpellChecker + +import enchant locale = "en_US" @@ -12,7 +14,7 @@ def spell(inp): return "Could not find dictionary: {}".format(locale) if len(inp.split(" ")) > 1: - chkr = enchant.checker.SpellChecker(locale) + chkr = SpellChecker(locale) chkr.set_text(inp) for err in chkr: