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