I believe the fix is in dumpStartElement in buffers.py:
def dumpStartElement(self, elem, attrs={}): self.write('<%s' % elem) for name, value in attrs.items(): self.write(' %s=%s' % (name, quoteattr(value))) # self.write(' %s="%s"' % (name, value)) self.write('>')
With:
from xml.sax.saxutils import quoteattr
Near the start of the file.
I believe the fix is in dumpStartElement in buffers.py:
def dumpStartElemen t(self, elem, attrs={}):
self.write( '<%s' % elem)
self. write(' %s=%s' % (name, quoteattr(value)))
self.write( '>')
for name, value in attrs.items():
# self.write(' %s="%s"' % (name, value))
With:
from xml.sax.saxutils import quoteattr
Near the start of the file.