Commit 69960dc
committed
pythongh-141314: Fix TextIOWrapper.tell() assertion failure with standalone carriage return
Add test case and fix assertion failure in TextIOWrapper.tell() when reading
files that end with a standalone carriage return (\r). The optimization
algorithm incorrectly assumed buffered data would always be available,
causing an assertion failure when next_input is empty.1 parent fe6dd19 commit 69960dc
1 file changed
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments