Skip to content

Commit dbbc554

Browse files
author
Saber_0324
committed
Added missing argument 'size' with default value of -1 to TextIOBase.readline
1 parent 17720b1 commit dbbc554

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/_pyio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,7 @@ def truncate(self, pos=None):
19281928
"""Truncate size to pos, where pos is an int."""
19291929
self._unsupported("truncate")
19301930

1931-
def readline(self):
1931+
def readline(self, size=-1):
19321932
"""Read until newline or EOF.
19331933
19341934
Returns an empty string if EOF is hit immediately.

0 commit comments

Comments
 (0)