diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-08-18 20:10:57 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-08-18 20:10:57 +0200 |
| commit | dbbd3a7f7e0bcc86216a69fe367ab18395931537 (patch) | |
| tree | f7529ee78d8f07a688449a58da388d015933c7f5 /gotrc-examples/issue-file | |
| parent | forgot to update the makefile (diff) | |
| download | gates-of-tartaros-master.tar.gz gates-of-tartaros-master.tar.bz2 gates-of-tartaros-master.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-file | 3 |
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: ' |
