Commit 36eb0f8
committed
gh-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 49d7236 commit 36eb0f8
File tree
2 files changed
+5
-0
lines changed- Lib/_pyrepl
- Misc/NEWS.d/next/Windows
2 files changed
+5
-0
lines changed| 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