mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Added verbose logging of tokenize times.
This commit is contained in:
parent
d7fce630d5
commit
4e14a85ea1
@ -200,10 +200,15 @@ class Tokenizer:
|
||||
return args
|
||||
|
||||
def tokenize(s):
|
||||
start = time.time()
|
||||
try:
|
||||
return Tokenizer().tokenize(s)
|
||||
args = Tokenizer().tokenize(s)
|
||||
except ValueError, e:
|
||||
raise SyntaxError, str(e)
|
||||
debug.msg('tokenize took %s seconds.' % (time.time() - start), 'verbose')
|
||||
return args
|
||||
|
||||
|
||||
|
||||
class IrcObjectProxy:
|
||||
def __init__(self, irc, msg, args):
|
||||
|
Loading…
Reference in New Issue
Block a user