def focus_next_pane(self):
        """ Shifts focus to the "next" pane, taking into account the active pane
            and the pane geometry.
        """
        if self._active_state:
            panes = self._get_pane_ring()
            index = 0
            if self.active_pane:
                index = len(panes) % (panes.index(self.active_pane) + 1)
            panes[index].set_focus()
dataset/ETHPy150Open enthought/pyface/pyface/tasks/task_window.py/TaskWindow.focus_next_pane/swapped operands of `%`