mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Should fix bugz0r with OptionList.tokenize.
This commit is contained in:
parent
465e12e14e
commit
bef64f2b21
@ -82,7 +82,9 @@ class OptionList(object):
|
||||
elif token == ')':
|
||||
if len(ret) > 1:
|
||||
if '|' in ret:
|
||||
L = map(''.join,utils.itersplit(lambda x: x=='|', ret))
|
||||
L = map(''.join,
|
||||
utils.itersplit('|'.__eq__, ret,
|
||||
yieldEmpty=True))
|
||||
return random.choice(L)
|
||||
else:
|
||||
return ''.join(ret)
|
||||
|
Loading…
Reference in New Issue
Block a user