mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-08 03:59:23 +01:00
String: make levenshtein command threaded, since it can take a nontrivial amount of time with longer inputs.
This commit is contained in:
parent
2d9f61e66c
commit
4ea3761b4b
@ -102,7 +102,7 @@ class String(callbacks.Plugin):
|
|||||||
'it with some smaller inputs.')
|
'it with some smaller inputs.')
|
||||||
else:
|
else:
|
||||||
irc.reply(str(utils.str.distance(s1, s2)))
|
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):
|
def soundex(self, irc, msg, args, text, length):
|
||||||
"""<string> [<length>]
|
"""<string> [<length>]
|
||||||
|
Loading…
Reference in New Issue
Block a user