summaryrefslogtreecommitdiffstats
path: root/external/poky/scripts/oepydevshell-internal.py
diff options
context:
space:
mode:
Diffstat (limited to 'external/poky/scripts/oepydevshell-internal.py')
-rwxr-xr-xexternal/poky/scripts/oepydevshell-internal.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/external/poky/scripts/oepydevshell-internal.py b/external/poky/scripts/oepydevshell-internal.py
index 04621ae8..96c078ef 100755
--- a/external/poky/scripts/oepydevshell-internal.py
+++ b/external/poky/scripts/oepydevshell-internal.py
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
import os
import sys
@@ -63,7 +66,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