Mercurial > bitten > bitten-test
changeset 54:ef3b8f623166
Exclude attributes with a value of {{{None}}}.
author | cmlenz |
---|---|
date | Sun, 26 Jun 2005 17:31:30 +0000 |
parents | f8a678d08296 |
children | 649626cabc23 |
files | bitten/util/xmlio.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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):