Commit 3073ac98 authored by Kirill Smelkov's avatar Kirill Smelkov

golang: qq: Use u for UTF-8 decoding

U is preffered way to make sure an object is unicode string.
parent 8c459a99
......@@ -828,7 +828,7 @@ def pyqq(obj):
# `printf('%s', qq(obj))` should work. For this make sure qobj is always a
# str - not bytes under py3 (if it was bytes it will print e.g. as b'...')
if six.PY3 and isinstance(qobj, bytes):
qobj = qobj.decode('UTF-8') # TODO use u
if six.PY3:
qobj = pyu(qobj)
return qobj
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment