

def get_next_page(self, page):
    ' Returns the next page. '
    if page.last_page:
        pass
    elif page.next_id:
        for p in self._pages:
            if (p.id == page.next_id):
                return p
    else:
        index = (self._pages.index(page) + 1)
        if (index < len(p._pages)):
            return self._pages[index]
    return None

dataset/ETHPy150Open enthought/pyface/pyface/wizard/wizard_controller.py WizardController.get_next_page/VarMisuse@84/108 `self`->`p`