mirror of https://github.com/Mikaela/Limnoria.git
Added a docstring.
This commit is contained in:
parent
1fa9f7990b
commit
b1495a1718
|
@ -231,6 +231,7 @@ class Tokenizer:
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def tokenize(self, s):
|
def tokenize(self, s):
|
||||||
|
"""Tokenizes a string according to supybot's nested argument format."""
|
||||||
lexer = shlex.shlex(StringIO(s))
|
lexer = shlex.shlex(StringIO(s))
|
||||||
lexer.commenters = ''
|
lexer.commenters = ''
|
||||||
lexer.quotes = '"'
|
lexer.quotes = '"'
|
||||||
|
|
Loading…
Reference in New Issue