From 3acf188d5b65c742d0b12d4d49c4f128e100d0ea Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Tue, 15 Oct 2024 21:58:33 +0200 Subject: All py3 strings are already utf8 ..or so I was told. Fix b'warn: file=maps/001-2.tmx empty tile in lower layers (125, 34), (126, 34), (124, 34), (127, 34)' (the b' prefix and ' suffix on printing) --- testxml/testxml.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/testxml/testxml.py b/testxml/testxml.py index befa3cf..b30e1b1 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -66,24 +66,18 @@ class Layer: def printErr(err): errDict.add(err) - print(err.encode("utf-8")) + print(err) def showFileErrorById(id, rootDir, fileDir): - rootDir = rootDir.encode("utf-8") - fileDir = fileDir.encode("utf-8") print("error: id=" + id + ", file not found: " + fileDir + " (" + rootDir + fileDir + ")") def showFileWarningById(id, rootDir, fileDir): - rootDir = rootDir.encode("utf-8") - fileDir = fileDir.encode("utf-8") print("warn: id=" + id + ", file not found: " + fileDir + " (" + rootDir + fileDir + ")") def showError(id, text): - text = text.encode("utf-8") print("error: id=" + id + " " + text) def showWarning(id, text): - text = text.encode("utf-8") print("warn: id=" + id + " " + text) def showMsg(id, text, src, iserr): -- cgit v1.2.3-70-g09d2