class_docstr: A base class providing the backwards-compatible spawn API for Pexpect.
  
  This should not be instantiated directly: use :class:`pexpect.spawn` or
  :class:`pexpect.fdpexpect.fdspawn`.
docstr: This reads until EOF using readline() and returns a list containing
  the lines thus read. The optional 'sizehint' argument is ignored.
  Remember, because this reads until EOF that means the child
  process should have closed its stdout. If you run this method on
  a child that is still running with its stdout open then this
  method will block until it timesout.
docstr_tok: ["This","reads","until","EOF","using","readline","(",")","and","returns","a","list","containing","the","lines","thus","read",".","The","optional","'sizehint","'","argument","is","ignored",".","Remember",",","because","this","reads","until","EOF","that","means","the","child","process","should","have","closed","its","stdout",".","If","you","run","this","method","on","a","child","that","is","still","running","with","its","stdout","open","then","this","method","will","block","until","it","timesout","."]
code: def readlines(self, sizehint=-1):
      """This reads until EOF using readline() and returns a list containing
      the lines thus read. The optional 'sizehint' argument is ignored.
      Remember, because this reads until EOF that means the child
      process should have closed its stdout. If you run this method on
      a child that is still running with its stdout open then this
      method will block until it timesout."""
  
      lines = []
      while True:
          line = self.readline()
          if not line:
              break
          lines.append(line)
      return lines
  
imports: from io import StringIO, BytesIO
  import codecs
  import os
  import sys
  import re
  import errno
  from .exceptions import ExceptionPexpect, EOF, TIMEOUT
  from .expect import Expecter, searcher_string, searcher_re
label_desc: Use image node_id 18 for calling the SpawnBase obj's underlying member method code with example usage: obj.readlines(sizehint) and returns: lines