Skip to content

Commit 427d371

Browse files
hack for partial multiprocessing support
1 parent 96ea960 commit 427d371

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,13 @@ def write(self, value):
201201
# others, so here's a hack to keep them happy
202202
raise IOError(errno.EBADF, "sys.stdin is read-only")
203203

204+
def close(self):
205+
# hack to make closing stdin a nop
206+
# This is useful for multiprocessing.Process, which does work
207+
# for the most part, although output from other processes is
208+
# discarded.
209+
pass
210+
204211
@property
205212
def encoding(self):
206213
return 'UTF8'

0 commit comments

Comments
 (0)