Commit d51436f
authored
When very large data remains in TextIOWrapper, flush() may fail forever.
So prevent that data larger than chunk_size is remained in TextIOWrapper internal
buffer.
Co-Authored-By: Eryk Sun
(cherry picked from commit 01806d5)
1 parent 44fe320 commit d51436f
File tree
3 files changed
+46
-3
lines changed- Lib/test
- Misc/NEWS.d/next/Library
- Modules/_io
3 files changed
+46
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3747 | 3747 | | |
3748 | 3748 | | |
3749 | 3749 | | |
| 3750 | + | |
| 3751 | + | |
| 3752 | + | |
| 3753 | + | |
| 3754 | + | |
| 3755 | + | |
| 3756 | + | |
| 3757 | + | |
| 3758 | + | |
| 3759 | + | |
| 3760 | + | |
| 3761 | + | |
| 3762 | + | |
| 3763 | + | |
| 3764 | + | |
| 3765 | + | |
| 3766 | + | |
| 3767 | + | |
| 3768 | + | |
| 3769 | + | |
| 3770 | + | |
| 3771 | + | |
| 3772 | + | |
| 3773 | + | |
| 3774 | + | |
| 3775 | + | |
| 3776 | + | |
3750 | 3777 | | |
3751 | 3778 | | |
3752 | 3779 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1602 | 1602 | | |
1603 | 1603 | | |
1604 | 1604 | | |
| 1605 | + | |
| 1606 | + | |
1605 | 1607 | | |
1606 | 1608 | | |
1607 | 1609 | | |
| |||
1659 | 1661 | | |
1660 | 1662 | | |
1661 | 1663 | | |
1662 | | - | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
1663 | 1668 | | |
1664 | 1669 | | |
1665 | 1670 | | |
| |||
1668 | 1673 | | |
1669 | 1674 | | |
1670 | 1675 | | |
1671 | | - | |
| 1676 | + | |
1672 | 1677 | | |
| 1678 | + | |
1673 | 1679 | | |
1674 | 1680 | | |
1675 | 1681 | | |
| |||
1694 | 1700 | | |
1695 | 1701 | | |
1696 | 1702 | | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
1697 | 1711 | | |
1698 | 1712 | | |
1699 | 1713 | | |
| |||
1713 | 1727 | | |
1714 | 1728 | | |
1715 | 1729 | | |
1716 | | - | |
| 1730 | + | |
1717 | 1731 | | |
1718 | 1732 | | |
1719 | 1733 | | |
| |||
0 commit comments