code: def _textio_iterlines(stream):
      
      line = stream.readline()
      while line != '':
          yield line
          line = stream.readline()
docs: Iterates over lines in a TextIO stream until an EOF is encountered.
      This is the iterator version of stream.readlines()