mirror of
https://github.com/python/cpython.git
synced 2026-10-28 18:35:21 +08:00
[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:
1 parent
abf5016b4d
commit
0ba3fcdf2f
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -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`.
|
||||
Reference in new issue
Block a user