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

(cherry picked from commit 30aeeb375b)

Co-authored-by: saber-bit <bryanventura0324@gmail.com>
This commit is contained in:
Miss Islington (bot)
2026-06-23 18:41:17 +02:00
committed by GitHub
parent 2ff445be4e
commit bd39eea0db
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1928,7 +1928,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`.