Skip to content

Commit 864e7bf

Browse files
committed
Further fixed stdout decoding for python3
1 parent fe4e73d commit 864e7bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonforandroid/logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,12 @@ def printtail(out, name, forecolor, tail_n=0,
194194
else:
195195
info('{} (last {} lines of {}):\n{}\t{}{}'.format(
196196
name, tail_n, len(lines),
197-
forecolor, '\t\n'.join([s.decode('utf-8') for s in lines[-tail_n:]]),
197+
forecolor, '\t\n'.join([s for s in lines[-tail_n:]]),
198198
Out_Fore.RESET))
199199
printtail(err.stdout.decode('utf-8'), 'STDOUT', Out_Fore.YELLOW, tail_n,
200200
re.compile(filter_in) if filter_in else None,
201201
re.compile(filter_out) if filter_out else None)
202-
printtail(err.stderr, 'STDERR', Err_Fore.RED)
202+
printtail(err.stderr.decode('utf-8'), 'STDERR', Err_Fore.RED)
203203
if is_critical:
204204
env = kwargs.get("env")
205205
if env is not None:

0 commit comments

Comments
 (0)