mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-13 04:01:05 +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 == ')':
|
elif token == ')':
|
||||||
if len(ret) > 1:
|
if len(ret) > 1:
|
||||||
if '|' in ret:
|
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)
|
return random.choice(L)
|
||||||
else:
|
else:
|
||||||
return ''.join(ret)
|
return ''.join(ret)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user