Skip to content

Commit

Permalink
Further fixed stdout decoding for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
inclement committed Jan 31, 2016
1 parent fe4e73d commit 864e7bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pythonforandroid/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ def printtail(out, name, forecolor, tail_n=0,
else:
info('{} (last {} lines of {}):\n{}\t{}{}'.format(
name, tail_n, len(lines),
forecolor, '\t\n'.join([s.decode('utf-8') for s in lines[-tail_n:]]),
forecolor, '\t\n'.join([s for s in lines[-tail_n:]]),
Out_Fore.RESET))
printtail(err.stdout.decode('utf-8'), 'STDOUT', Out_Fore.YELLOW, tail_n,
re.compile(filter_in) if filter_in else None,
re.compile(filter_out) if filter_out else None)
printtail(err.stderr, 'STDERR', Err_Fore.RED)
printtail(err.stderr.decode('utf-8'), 'STDERR', Err_Fore.RED)
if is_critical:
env = kwargs.get("env")
if env is not None:
Expand Down

0 comments on commit 864e7bf

Please sign in to comment.