summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oepydevshell-internal.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/oepydevshell-internal.py b/scripts/oepydevshell-internal.py
index 7761f667ef..31a75ac29f 100755
--- a/scripts/oepydevshell-internal.py
+++ b/scripts/oepydevshell-internal.py
@@ -29,9 +29,6 @@ if len(sys.argv) != 3:
29pty = open(sys.argv[1], "w+b", 0) 29pty = open(sys.argv[1], "w+b", 0)
30parent = int(sys.argv[2]) 30parent = int(sys.argv[2])
31 31
32# Don't buffer output by line endings
33sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
34sys.stdin = os.fdopen(sys.stdin.fileno(), 'r', 0)
35nonblockingfd(pty) 32nonblockingfd(pty)
36nonblockingfd(sys.stdin) 33nonblockingfd(sys.stdin)
37 34
@@ -64,6 +61,7 @@ try:
64 # Write a page at a time to avoid overflowing output 61 # Write a page at a time to avoid overflowing output
65 # d.keys() is a good way to do that 62 # d.keys() is a good way to do that
66 sys.stdout.write(i[:4096]) 63 sys.stdout.write(i[:4096])
64 sys.stdout.flush()
67 i = i[4096:] 65 i = i[4096:]
68 if sys.stdin in ready: 66 if sys.stdin in ready:
69 echonocbreak(sys.stdin.fileno()) 67 echonocbreak(sys.stdin.fileno())