def try_remove(self, needle, haystack):
        """
        Gracefully try to remove an item from an array. It not found, fire no
        errors. This is a convenience function to reduce code size.
        """
        try:
            haystack.remove(needle)
        except __HOLE__:
            pass
dataset/ETHPy150Open markjones112358/dmenu-extended/dmenu_extended.py/dmenu.try_remove