Repository navigation
Commit 9106913
authored
gh-154523 turned the buffer member descriptor into a getter that raises
ValueError when the buffer is NULL, and the backport shipped in 3.14.9
and 3.15.1. That made hasattr(stream, "buffer") raise after detach().
Restore the old member descriptor result (None) while keeping the
critical section.
(cherry picked from commit 3422197)
1 parent 7ed3bb8 commit 9106913
3 files changed
Lines changed: 10 additions & 4 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Library
- Modules/_io
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2910 | 2910 | | |
2911 | 2911 | | |
2912 | 2912 | | |
| 2913 | + | |
2913 | 2914 | | |
2914 | 2915 | | |
2915 | 2916 | | |
| |||
2925 | 2926 | | |
2926 | 2927 | | |
2927 | 2928 | | |
| 2929 | + | |
2928 | 2930 | | |
2929 | 2931 | | |
2930 | 2932 | | |
| |||
4403 | 4405 | | |
4404 | 4406 | | |
4405 | 4407 | | |
4406 | | - | |
4407 | | - | |
4408 | | - | |
| 4408 | + | |
4409 | 4409 | | |
4410 | 4410 | | |
4411 | 4411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3467 | 3467 | | |
3468 | 3468 | | |
3469 | 3469 | | |
3470 | | - | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
3471 | 3475 | | |
3472 | 3476 | | |
3473 | 3477 | | |
| |||
0 commit comments