mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +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
|
return args
|
||||||
|
|
||||||
def tokenize(s):
|
def tokenize(s):
|
||||||
|
start = time.time()
|
||||||
try:
|
try:
|
||||||
return Tokenizer().tokenize(s)
|
args = Tokenizer().tokenize(s)
|
||||||
except ValueError, e:
|
except ValueError, e:
|
||||||
raise SyntaxError, str(e)
|
raise SyntaxError, str(e)
|
||||||
|
debug.msg('tokenize took %s seconds.' % (time.time() - start), 'verbose')
|
||||||
|
return args
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class IrcObjectProxy:
|
class IrcObjectProxy:
|
||||||
def __init__(self, irc, msg, args):
|
def __init__(self, irc, msg, args):
|
||||||
|
Loading…
Reference in New Issue
Block a user