(config_lines, start_line, indent=None)
return end
Returns the end of a yaml block for a given start line.

    If the indent parameter is unspecified, the start_line needs to be
    the start of a block. The indentation of that line will be used.
    You can specify the indent parameter to reach the end of the block
    with the provided indentation.

    :param config_lines: The yaml data as an array of strings
    :param start_line: Where to start looking for the end of a block
    :param indent: Optional, see description
    :return: The line at which the block ends.
             None if line is empty or if there is no block
Returns the end of a yaml block for a given start line.
Returns the end of a yaml block for a given start line .
def get_end_of_part(config_lines, start_line, indent=None):
    """Returns the end of a yaml block for a given start line.

    If the indent parameter is unspecified, the start_line needs to be
    the start of a block. The indentation of that line will be used.
    You can specify the indent parameter to reach the end of the block
    with the provided indentation.

    :param config_lines: The yaml data as an array of strings
    :param start_line: Where to start looking for the end of a block
    :param indent: Optional, see description
    :return: The line at which the block ends.
             None if line is empty or if there is no block
    """
    i = start_line
    end = len(config_lines)
    if i >= end:
        return end

    if is_blank(config_lines[i]):
        return None

    if indent is None:
        indent = get_indent(config_lines[i])

    i += 1
    has_seen_data = False
    while i < end:
        if is_blank(config_lines[i]):
            i += 1
        elif is_at_least_indented(config_lines[i], indent + 1):
            i += 1
            has_seen_data = True
        else:
            end = i

    if not has_seen_data:
        return None

    return end
def get_end_of_part ( config_lines , start_line , indent = None ) : i = start_line end = len ( config_lines ) if i >= end : return end if is_blank ( config_lines [ i ] ) : return None if indent is None : indent = get_indent ( config_lines [ i ] ) i += 1 has_seen_data = False while i < end : if is_blank ( config_lines [ i ] ) : i += 1 elif is_at_least_indented ( config_lines [ i ] , indent + 1 ) : i += 1 has_seen_data = True else : end = i if not has_seen_data : return None return end