def _set (self, function):
		try:
			self._tokens = function
			self._next = self._tokens.next()
		except __HOLE__,exc:
			error = str(exc)
			if error.count(']'):
				self.error.set(error.split(']')[1].strip())
			else:
				self.error.set(error)
			self._tokens = Tokeniser._off
			self._next = []
			return self.error.set('issue setting the configuration parser')
		except StopIteration:
			self._tokens = Tokeniser._off
			self._next = []
			return self.error.set('issue setting the configuration parser, no data')
		return True
dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/configuration/core/tokeniser.py/Tokeniser._set