def remove_menu(self, name):
        """Remove a top-level menu.

        Only removes menus created by the same menu manager.
        """
        if self._menus not in name:
            raise exceptions.MenuNotFound(
                "Menu {!r} was not found. It might be deleted, or belong to another menu manager.".format(name))

        self._menu.removeAction(self._menus[name].menuAction())
        del self._menus[name]
dataset/ETHPy150Open tmr232/Sark/sark/qt.py/MenuManager.remove_menu/swapped operands of `not in`