def attribute(self, uri, value):
    write = self.stream.write
    write((' %s=%s' % (self.qname(uri), quoteattr(value))))
def attribute(self, uri, value):
    write = self.stream.write
    write((' %s=%s' % (self.qname(uri), quoteattr(value))))