[3.13] gh-151596: Add missing argument 'size' to pure-Python implementation of TextIOBase.readline (GH-151679) (GH-151872)

(cherry picked from commit 30aeeb375b)

Co-authored-by: saber-bit <bryanventura0324@gmail.com>
This commit is contained in:
Miss Islington (bot)andsaber-bit authored and GitHub committed 2026-06-23 12:41:37 -04:00
1 parent abf5016b4d
commit 0ba3fcdf2f
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -1856,7 +1856,7 @@ class TextIOBase(IOBase):
"""Truncate size to pos, where pos is an int."""
self._unsupported("truncate")
def readline(self):
def readline(self, size=-1, /):
"""Read until newline or EOF.
Returns an empty string if EOF is hit immediately.
@@ -0,0 +1 @@
Add missing ``size`` positional argument to the pure-Python implementation of :meth:`io.TextIOBase.readline`.