From dbbd3a7f7e0bcc86216a69fe367ab18395931537 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 18 Aug 2017 20:10:57 +0200 Subject: Fix issue-file example, it stopped working MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- gotrc-examples/issue-file | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gotrc-examples') diff --git a/gotrc-examples/issue-file b/gotrc-examples/issue-file index 6f5aa3f..a620117 100644 --- a/gotrc-examples/issue-file +++ b/gotrc-examples/issue-file @@ -95,7 +95,8 @@ for i in range(len(data)): esc = True else: buf += c -print(buf, end = "", flush = True) +sys.stdout.buffer.write(buf.encode('utf-8')) +sys.stdout.buffer.flush() EOF echo echo -n 'Login: ' -- cgit v1.2.3-70-g09d2