I have '\n'
and '\r'
in my readline data which is coming from Microcontroller. I have tried to clean them through the following code but still I have b''
in every line. Is there any way to remove it completely from the data ?
bs = ser.readline()
bs = bs.replace(b'\n', b' ').replace(b'\r', b' ')
print(bs)