mirror of https://github.com/python/cpython
don't optimize empty strings
This commit is contained in:
parent
aefae5570d
commit
87316ec962
|
@ -88,7 +88,7 @@ class DumbXMLWriter:
|
|||
self.writeln("</%s>" % element)
|
||||
|
||||
def simpleElement(self, element, value=None):
|
||||
if value:
|
||||
if value is not None:
|
||||
value = _encode(value)
|
||||
self.writeln("<%s>%s</%s>" % (element, value, element))
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue