Show More
@@ -88,9 +88,12 b' def _find_cmd(cmd):' | |||||
88 |
|
88 | |||
89 | def _system_body(p): |
|
89 | def _system_body(p): | |
90 | """Callback for _system.""" |
|
90 | """Callback for _system.""" | |
|
91 | enc = sys.stdin.encoding | |||
91 | for line in read_no_interrupt(p.stdout).splitlines(): |
|
92 | for line in read_no_interrupt(p.stdout).splitlines(): | |
|
93 | line = line.decode(enc) | |||
92 | print(line, file=sys.stdout) |
|
94 | print(line, file=sys.stdout) | |
93 | for line in read_no_interrupt(p.stderr).splitlines(): |
|
95 | for line in read_no_interrupt(p.stderr).splitlines(): | |
|
96 | line = line.decode(enc) | |||
94 | print(line, file=sys.stderr) |
|
97 | print(line, file=sys.stderr) | |
95 |
|
98 | |||
96 |
|
99 |
General Comments 0
You need to be logged in to leave comments.
Login now