# HG changeset patch # User cmlenz # Date 1119807090 0 # Node ID ef3b8f623166585fbc48f1fffed276e768c5e21b # Parent f8a678d0829679ffb9e35505bb0d34ff21da92ae Exclude attributes with a value of {{{None}}}. diff --git a/bitten/util/xmlio.py b/bitten/util/xmlio.py --- a/bitten/util/xmlio.py +++ b/bitten/util/xmlio.py @@ -85,7 +85,8 @@ keyword arguments following it are handled as attributes of the element. """ self.name = args[0] - self.attrs = attrs + self.attrs = dict([(name, value) for name, value in attrs.items() + if value is not None]) self.children = [] def __getitem__(self, children):