def _get_lines(text):
    """ Get a generator object with text lines.

    :param text: Text to parse.
    :type text: str
    :return: Text lines.
    :rtype: generator
    """
    lines = (line for line in text.split("\n"))
    return lines