diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index 5bcb1bf..a2e19dd 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -1356,7 +1356,7 @@ def llListSort(lst, stride, asc): if broken and ta in (unicode, Key): # Note this breaks type consistency between a and ta! # It should be OK because only equal types are compared. - a = a.encode('utf-32-be') + a = a.encode('utf-32-be') # pragma: no cover for j in xrange(i+stride, L, stride): b = lst[j] tb = type(b) @@ -1368,7 +1368,7 @@ def llListSort(lst, stride, asc): # (note NaNs compare as > thus the reversed condition!) elif tb != Quaternion: if broken and tb in (unicode, Key): - b = b.encode('utf-32-be') + b = b.encode('utf-32-be') # pragma: no cover gt = not (a <= b) # float, integer, string, key all take this branch # (note NaNs compare as > thus the reversed condition!) if gt ^ (asc != 1): @@ -1381,7 +1381,7 @@ def llListSort(lst, stride, asc): a = v2f(a) a = a[0]*a[0] + a[1]*a[1] + a[2]*a[2] if broken and ta in (unicode, Key): - a = a.encode('utf-32-be') + a = a.encode('utf-32-be') # pragma: no cover return lst def llListStatistics(op, lst): diff --git a/testfuncs.py b/testfuncs.py index f0f591c..cd90bd4 100644 --- a/testfuncs.py +++ b/testfuncs.py @@ -1479,7 +1479,7 @@ def do_tests(): # JSON tests - Here be dragons. - print("9 errors expected past here -------------------------------------------------") + print "9 errors expected past here " + "-" * 50 test('''llEscapeURL(llList2Json(JSON_OBJECT, [llUnescapeURL( u"%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F" u"%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F"