empty strings should also be added as attributes

This commit is contained in:
Martin
2016-06-09 16:57:59 +02:00
parent 7bf8afdb01
commit 27542b9ebb
+1 -3
View File
@@ -20,9 +20,7 @@ class Category(object):
if self.attributes:
attributes = SubElement(root, "attributes")
for k, v in self.attributes.items():
s = str(v)
if s:
SubElement(attributes, k).text = s
SubElement(attributes, k).text = str(v)
return root