From 4c0de51d2a16b099bea0b6e8676942bfc293cd16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 5 Apr 2017 12:32:33 +0200 Subject: [PATCH] set_as_str() now also works for sets of non-string data. Also not doubly-sorting any more. --- bam/blend/blendfile_path_walker.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bam/blend/blendfile_path_walker.py b/bam/blend/blendfile_path_walker.py index 9ec4e34..abefb25 100644 --- a/bam/blend/blendfile_path_walker.py +++ b/bam/blend/blendfile_path_walker.py @@ -72,8 +72,7 @@ if VERBOSE: def set_as_str(s): if s is None: return "None" - else: - return (", ".join(sorted(i.decode('ascii') for i in sorted(s)))) + return ", ".join(sorted(str(i) for i in s)) class FPElem: