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:
Sei Lisa 2014-07-31 19:18:26 +02:00
parent e620c9f305
commit f03466629f
3 changed files with 16 additions and 25 deletions

View file

@ -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)