def _set_watch(self):
		"""
		Internal function, not intended for external calling
		"""
		self.key = (self.event_type, self.path)
		if self.session.watches.add(self.key, self):
			try:
				self._watch_key()
			except zookeeper.ConnectionLossException:
				watches = set(self.session.watches.pop(self.key))
				for w in watches:
					w._deleted()
				if watches in self.session:
					watches.remove(self.session)
				if watches:
					zc.zk.logger.critical('lost watches %s' % watches)
				raise
			pass
		else:
			self._notify(self.session.exists(self.path))
dataset/ETHPy150Open Knewton/pettingzoo-python/pettingzoo/deleted.py/Deleted._set_watch/swapped operands of `in`