Commit 8e5864df authored by Kirill Smelkov's avatar Kirill Smelkov

strconv: Fix thinko in _bstr

In Python, %-formatting needs % operator, not ",".
parent 3aca691e
......@@ -35,7 +35,7 @@ def _bstr(s): # -> sbytes, wasunicode
elif isinstance(s, six.text_type): # py2: unicode py3: str
wasunicode = True
else:
raise TypeError("_bstr: invalid type %s", type(s))
raise TypeError("_bstr: invalid type %s" % type(s))
if wasunicode: # py2: unicode py3: str -> bytes
s = s.encode('UTF-8')
......
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