def _set_namespace(self, namespace):
    if isinstance(self._qname, tuple):
      self._qname = self._qname.copy()
      if namespace:
         self._qname[0] = '{%s}%s' % (namespace, self._get_tag(1))
      else:
         self._qname[0] = self._get_tag(1)
    else:
      if namespace:
         self._qname = '{%s}%s' % (namespace, self._get_tag(1))
      else:
         self._qname = self._get_tag(1)
dataset/ETHPy150Open CollabQ/CollabQ/vendor/atom/core.py/XmlElement._set_namespace/original