in src/base64io/__init__.py [0:0]
def readlines(self, hint=-1):
# type: (int) -> List[bytes]
"""Read and return a list of lines from the stream.
``hint`` can be specified to control the number of lines read: no more lines will
be read if the total size (in bytes/characters) of all lines so far exceeds hint.
:type hint: int
:returns: Lines of data
:rtype: list of bytes
"""
lines = []
total_len = 0
hint_defined = hint > 0
for line in self: # type: ignore
lines.append(line)
total_len += len(line)
hint_satisfied = total_len > hint
if hint_defined and hint_satisfied:
break
return lines