set_as_str() now also works for sets of non-string data.
Also not doubly-sorting any more.
This commit is contained in:
@@ -72,8 +72,7 @@ if VERBOSE:
|
|||||||
def set_as_str(s):
|
def set_as_str(s):
|
||||||
if s is None:
|
if s is None:
|
||||||
return "None"
|
return "None"
|
||||||
else:
|
return ", ".join(sorted(str(i) for i in s))
|
||||||
return (", ".join(sorted(i.decode('ascii') for i in sorted(s))))
|
|
||||||
|
|
||||||
|
|
||||||
class FPElem:
|
class FPElem:
|
||||||
|
Reference in New Issue
Block a user