diff options
Diffstat (limited to 'poky/scripts/oepydevshell-internal.py')
-rwxr-xr-x | poky/scripts/oepydevshell-internal.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/poky/scripts/oepydevshell-internal.py b/poky/scripts/oepydevshell-internal.py index 04621ae8a..2f7d5d433 100755 --- a/poky/scripts/oepydevshell-internal.py +++ b/poky/scripts/oepydevshell-internal.py @@ -63,7 +63,9 @@ try: (ready, _, _) = select.select([pty, sys.stdin], writers , [], 0) try: if pty in ready: - i = i + pty.read().decode('utf-8') + readdata = pty.read() + if readdata: + i = i + readdata.decode('utf-8') if i: # Write a page at a time to avoid overflowing output # d.keys() is a good way to do that |