mirror of
https://github.com/python/cpython.git
synced 2026-06-27 19:36:07 +00:00
[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:
parent
2ff445be4e
commit
bd39eea0db
2 changed files with 2 additions and 1 deletions
|
|
@ -1928,7 +1928,7 @@ def truncate(self, pos=None):
|
|||
"""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`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue