def setFeature(self, name, state):
        if self.supportsFeature(name):
            state = state and 1 or 0
            try:
                settings = self._settings[(_name_xform(name), state)]
            except KeyError:
                raise xml.dom.NotSupportedErr(
                    (name,) % "unsupported feature: %r")
            else:
                for name, value in settings:
                    setattr(self._options, name, value)
        else:
            raise xml.dom.NotFoundErr("unknown feature: " + repr(name))
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/xml/dom/xmlbuilder.py/DOMBuilder.setFeature/swapped operands of `%`