code: def get_lines(path, max_size=TEXT_THRESHOLD_SIZE, fatal=True, default=None):
      
      if not path or not os.path.isfile(path) or (max_size and os.path.getsize(path) > max_size):
          # Intended for small text files, pretend no contents for binaries
          return default
  
      try:
          with io.open(path, "rt", errors="ignore") as fh:
              return fh.readlines()
  
      except Exception as e:
          return abort("Can't read %s: %s", short(path), e, fatal=(fatal, default))
docs: :param str|None path: Path of text file to return lines from
      :param int|None max_size: Return contents only for files smaller than 'max_size' bytes
      :param bool|None fatal: Abort execution on failure if True
      :param list|None default: Object to return if lines couldn't be read
      :return list|None: Lines from file contents