fix unexpected label string

This commit is contained in:
Kashiko Koibumi 2024-05-31 02:52:00 +09:00
parent bfda9fe65e
commit 047ee359b3
No known key found for this signature in database
GPG Key ID: 8F06E069E37C40C4

View File

@ -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