From 047ee359b323ca0981a49e942b72c49dbde9f49a Mon Sep 17 00:00:00 2001 From: Kashiko Koibumi Date: Fri, 31 May 2024 02:52:00 +0900 Subject: [PATCH] fix unexpected label string --- src/unqstr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unqstr.py b/src/unqstr.py index 7c984df9..4c2994b1 100644 --- a/src/unqstr.py +++ b/src/unqstr.py @@ -5,6 +5,8 @@ def ustr(v): if six.PY3: if isinstance(v, str): return v + elif isinstance(v, bytes): + return v.decode("utf-8", "replace") else: return str(v) # assume six.PY2