code: def _setns(self, value):
          
          if self.conn is not None:
              self.conn.default_namespace = value
          else:
              self.__default_namespace = value
docs: Set the default repository namespace to be used.
  
          This method exists for compatibility. Use the :attr:`default_namespace`
          property instead.