diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-18 21:57:23 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:10:03 +0100 |
commit | 30d02e2aa2d42fdf76271234b2dc9f37bc46b250 (patch) | |
tree | 2894bf5b42b389ef8dc5875163d2368e82534c69 /scripts/lib/devtool/__init__.py | |
parent | e8cfab060f4ff3c4c16387871354d407910e87aa (diff) | |
download | openembedded-core-30d02e2aa2d42fdf76271234b2dc9f37bc46b250.tar.gz openembedded-core-30d02e2aa2d42fdf76271234b2dc9f37bc46b250.tar.bz2 openembedded-core-30d02e2aa2d42fdf76271234b2dc9f37bc46b250.zip |
scripts: Fix encoding errors for python3
Moved call of decode('utf-8') as close as possible to
call of subprocess API to avoid calling it in a lot of
other places.
Decoded binary data to utf-8 where appropriate to fix devtool
and recipetool tests in python 3 environment.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib/devtool/__init__.py')
-rw-r--r-- | scripts/lib/devtool/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py index 6f5bb8dba0..70053631e8 100644 --- a/scripts/lib/devtool/__init__.py +++ b/scripts/lib/devtool/__init__.py @@ -69,6 +69,7 @@ def exec_watch(cmd, **options): buf = '' while True: out = process.stdout.read(1) + out = out.decode('utf-8') if out: sys.stdout.write(out) sys.stdout.flush() |