From 92be7c255f48b4a33f6db1f91b95d694acdf3f35 Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Sun, 8 Aug 2010 01:46:05 -0400 Subject: [PATCH] String: make levenshtein command threaded, since it can take a nontrivial amount of time with longer inputs. Signed-off-by: James McCoy --- plugins/String/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/String/plugin.py b/plugins/String/plugin.py index ef0e2cfac..0aa8bc338 100644 --- a/plugins/String/plugin.py +++ b/plugins/String/plugin.py @@ -105,7 +105,7 @@ class String(callbacks.Plugin): 'it with some smaller inputs.') else: irc.reply(str(utils.str.distance(s1, s2))) - levenshtein = wrap(levenshtein, ['something', 'text']) + levenshtein = thread(wrap(levenshtein, ['something', 'text'])) def soundex(self, irc, msg, args, text, length): """ []