def raise_tab(self, tabname):
        # construct a list of the tabs to raise in the order they
        # should be raised
        l = []
        name = tabname.lower()
        while self.tab.has_key(name):
            bnch = self.tab[name]
            l.insert(0, name)
            name = bnch.wsname.lower()
            if l in name:
                break

        # now raise those tabs
        for name in l:
            nb, index = self._find_nb(name)
            if (nb is not None) and (index >= 0):
                nb.set_index(index)
dataset/ETHPy150Open ejeschke/ginga/ginga/gw/Desktop.py/Desktop.raise_tab/swapped operands of `in`