X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fsp%2Fcons.py;h=4052dce03344e06ee3c00c31b255461f0664cd4e;hp=ce258c65325b3318c6b66b636f1ca35f05586403;hb=4c4dcf7a020ed52ea9d8d9048dbd62ffa3a7d54d;hpb=9bc70dab473c7057a20d182ce8566ad0a70a7c5d diff --git a/wrw/sp/cons.py b/wrw/sp/cons.py index ce258c6..4052dce 100644 --- a/wrw/sp/cons.py +++ b/wrw/sp/cons.py @@ -60,7 +60,8 @@ class context(object): node.children.append(self.nodefrom(child)) def addattr(self, node, k, v): - node.attrs[unicode(k)] = unicode(v) + if v is not None: + node.attrs[unicode(k)] = unicode(v) class constructor(object): def __init__(self, ns, elcls=element, ctx=None):