From ab5b9389b757367bd7fd08c47ef0fad5ed3f50bc Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 11 Jan 2017 01:56:10 +0100 Subject: [PATCH] soc/tools/litex_term.py: fix reader for c = b"\r" case --- litex/soc/tools/litex_term.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/tools/litex_term.py b/litex/soc/tools/litex_term.py index 53da5368..43ebbd7b 100644 --- a/litex/soc/tools/litex_term.py +++ b/litex/soc/tools/litex_term.py @@ -214,7 +214,7 @@ class LiteXTerm: while self.reader_alive: c = self.port.read() if c == b"\r": - sys.stdout.write(b"\n") + sys.stdout.buffer.write(b"\n") else: sys.stdout.buffer.write(c) sys.stdout.flush() -- 2.30.2