mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix several bugs in lslbasefuncs; change InternalJsonScanMatching strategy.
Fix bug: add(Key, Key) is not valid. Fix bug: llList2CSV was raising an exception always. Fix bug in test program: llDumpList2String requires Unicode separator. Patch test program to not output the passed tests.
This commit is contained in:
parent
e620c9f305
commit
f03466629f
3 changed files with 16 additions and 25 deletions
|
@ -476,7 +476,7 @@ def add(a, b, f32=True):
|
|||
if ta == tb in (list, unicode):
|
||||
return a + b
|
||||
# string + key, key + string are allowed here
|
||||
if ta in (unicode, Key) and tb in (unicode, Key):
|
||||
if ta in (unicode, Key) and tb in (unicode, Key) and not (ta == tb == Key):
|
||||
return a + b
|
||||
if ta == list:
|
||||
return a + [b]
|
||||
|
@ -931,7 +931,7 @@ def llIntegerToBase64(x):
|
|||
def llList2CSV(lst):
|
||||
assert islist(lst)
|
||||
ret = []
|
||||
for elem in val:
|
||||
for elem in lst:
|
||||
# This always uses LSO rules for float to string.
|
||||
if type(elem) == float:
|
||||
ret.append(u'%.6f' % elem)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue