How can I split a byte string into a list of lines?
In python 2 I had:
rest = \"some\\nlines\" for line in rest.split(\"\\n\"): print line
try this.. . rest = b"some\nlines" rest=rest.decode("utf-8") then you can do rest.split("\n")
rest = b"some\nlines"
rest=rest.decode("utf-8")
rest.split("\n")