Commit 93c04f9
committed
pythongh-132962: _pyrepl: Prevent crash on Windows when stdout is redirected
The interactive interpreter (-i) on Windows no longer crashes when
standard output is redirected. The check for `CAN_USE_PYREPL` now
also checks if stdout is a TTY on Windows, falling back to the
basic REPL if it is not.1 parent 7b15873 commit 93c04f9
2 files changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments