| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 96ea960 commit 427d371
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -201,6 +201,13 @@ def write(self, value): | |||
| 201 | 201 | # others, so here's a hack to keep them happy | |
| 202 | 202 | raise IOError(errno.EBADF, "sys.stdin is read-only") | |
| 203 | 203 | ||
| 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 | + | ||
| 204 | 211 | @property | |
| 205 | 212 | def encoding(self): | |
| 206 | 213 | return 'UTF8' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments