def addattr(self, node, k, v):
k = str(k)
- node.attrs[self.attrmap.get(k, k)] = str(v)
+ super().addattr(node, self.attrmap.get(k, k), v)
def cons(ctx=None):
if ctx is None: ctx = xhtmlcontext()
def xhtmlresp(callable):
def wrapper(req):
return forreq(req, callable(req))
+ wrapper.__wrapped__ = callable
return wrapper