Merge pull request #1746 from pijyoi/fix_cprint_remote
fix: cprint of remote output needs decode()
This commit is contained in:
commit
fe66f3fd12
@ -489,12 +489,12 @@ class FileForwarder(threading.Thread):
|
|||||||
while not self.finish.is_set():
|
while not self.finish.is_set():
|
||||||
line = self.input.readline()
|
line = self.input.readline()
|
||||||
with self.lock:
|
with self.lock:
|
||||||
cprint.cout(self.color, line, -1)
|
cprint.cout(self.color, line.decode('utf8'), -1)
|
||||||
elif self.output == 'stderr' and self.color is not False:
|
elif self.output == 'stderr' and self.color is not False:
|
||||||
while not self.finish.is_set():
|
while not self.finish.is_set():
|
||||||
line = self.input.readline()
|
line = self.input.readline()
|
||||||
with self.lock:
|
with self.lock:
|
||||||
cprint.cerr(self.color, line, -1)
|
cprint.cerr(self.color, line.decode('utf8'), -1)
|
||||||
else:
|
else:
|
||||||
if isinstance(self.output, str):
|
if isinstance(self.output, str):
|
||||||
self.output = getattr(sys, self.output)
|
self.output = getattr(sys, self.output)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user