def toxml(self): ## s=u"" ## def wr(x): ## s.__add__(x) ## self.__xml__(wr) ## return s u=UniStringIO() ## from cStringIO import StringIO ## b=StringIO() ## def wr(s): ## b.write(s.encode("utf-8")) ## self.__xml__(wr) self.__xml__(u.write) return u.getvalue()
def toxml(self): u = UniStringIO() self.__xml__(u.write) return u.getvalue()
def toxml(self): u=UniStringIO() self.__xml__(u.write) return u.getvalue()