aboutsummaryrefslogtreecommitdiffstats
path: root/gotrc-examples/issue-file
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-08-18 20:10:57 +0200
committerMattias Andrée <maandree@kth.se>2017-08-18 20:10:57 +0200
commitdbbd3a7f7e0bcc86216a69fe367ab18395931537 (patch)
treef7529ee78d8f07a688449a58da388d015933c7f5 /gotrc-examples/issue-file
parentforgot to update the makefile (diff)
downloadgates-of-tartaros-dbbd3a7f7e0bcc86216a69fe367ab18395931537.tar.gz
gates-of-tartaros-dbbd3a7f7e0bcc86216a69fe367ab18395931537.tar.bz2
gates-of-tartaros-dbbd3a7f7e0bcc86216a69fe367ab18395931537.tar.xz
Fix issue-file example, it stopped workingHEAD1503081567master
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'gotrc-examples/issue-file')
-rw-r--r--gotrc-examples/issue-file3
1 files changed, 2 insertions, 1 deletions
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: '