def remove_item_from_menus(matching):
	for menu in MENUS:
		for item in menu['menu'][:]:
			_match = True
			
			for key in matching:
				#print item.keys()
				if not key in item or not matching[key] == item[key]:
					_match = False
					break
			
			if _match:
				menu['menu'].remove(item)
dataset/ETHPy150Open flags/Reactor-3/menus.py/remove_item_from_menus/original