Commits

fab31 committed 46262b5

Fix some unicode issues

Comments (0)

Files changed (1)

zicbee_lib/formats.py

             # assume iterable
             for elt in d:
                 if isinstance(elt, (list, tuple)):
-                    yield " | ".join(str(e) for e in elt) + "\n"
+                    yield u" | ".join(unicode(e) for e in elt) + u"\n"
                 else:
-                    yield "%s\n"%elt
+                    yield u"%s\n"%elt
 
 ################################################################################