code: def state(self, state):
          '''Change the state of the client. This is one of the values
          defined in ClientStates.'''
          logger.debug('client changing to state=%s', ClientState.Names[state])
          self._state = statf state(self, state):
          '''Change the state of the client. This is one of the values
          defined in ClientStates.'''
          logger.debug('client changing to state=%s', ClientState.Names[state])
          self._state = state
docs: Change the state of the client. This is one of the values
          defined in ClientStates.