import itertools


def get_page_section(page_content, section):
    """Return iterable of lines making up a section of a wiki page."""
    section_start = u'== {} =='.format(section).lower()
    lines = page_content.splitlines()
    lines = itertools.dropwhile(
        lambda x: x.lower() != section_start,
        lines,
    )
    next(lines)  # skip the section heading
    lines = itertools.takewhile(
        lambda x: not x.startswith('== '),
        lines,
    )
    return lines