def remove_candidate(self, candidate):
		'''
		Removes candidate from zookeeper and updates leader queues to
		reflect deleted candidate.

		:param path: string. path to deleted node
		:rtype: True if successful, False otherwise
		'''
		#create node in ZK. Node will be delete when backing framework is closed
		with self.lock:
			del_id = self.counter_by_candidate.get(candidate, None)
			get_logger().info((del_id) % "LeaderQueue.remove_candidate %s")
			if del_id == None:
				return False
		try:
			# delete node
			self.connection.delete(id_to_item_path(self.path, del_id))
			# update the leader queues
			self._handle_remove(del_id)
			#cleanup hashes
			with self.lock:
				del self.counter_by_candidate[candidate]
				return True
		except zookeeper.NoNodeException:
			return False
dataset/ETHPy150Open Knewton/pettingzoo-python/pettingzoo/leader_queue.py/LeaderQueue.remove_candidate/swapped operands of `%`