I have a list of bytes strings that I try for format into another string, which in turn I convert to bytes, looks something like this:
byte_string = b'text'
fmt = 'this is the text: %s'
fmt_string = bytes(fmt % byte_string, 'utf-8')
but if I print fmt_string I get this
b"this is the text: b'text'"
I know that in python3.5 I can do this:
b'this is the text: %s' % b'text'
and receive:
b'this is the text: text'
is there a way to do the same with python3.4?