X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fsp%2Fcons.py;h=205de0355c3c912fdfba6d5d41d451261f407714;hp=c4d9999a884015478740158df9fe62c836104929;hb=d38b200493b3ed263dbf10581d6d204462ed68c4;hpb=babf3e21cb06bf867e3ec98003d4a077090b8839 diff --git a/wrw/sp/cons.py b/wrw/sp/cons.py index c4d9999..205de03 100644 --- a/wrw/sp/cons.py +++ b/wrw/sp/cons.py @@ -59,7 +59,8 @@ class context(object): node.children.append(self.nodefrom(child)) def addattr(self, node, k, v): - node.attrs[str(k)] = str(v) + if v is not None: + node.attrs[str(k)] = str(v) class constructor(object): def __init__(self, ns, elcls=element, ctx=None):