示例#1
0
    def finished(self):
        if not self.filename:
            return

        body = element_to_str(self.convert_to_xml(), encoding='utf8')

        handle = open(self.filename, 'w')
        handle.write(body.decode('utf8'))
        handle.close()
示例#2
0
    def finished(self):
        if not self.filename:
            return

        body = element_to_str(self.convert_to_xml(), encoding='utf8')

        handle = open(self.filename, 'w')
        handle.write('{0}'.format(body))
        handle.close()
示例#3
0
 def __str__(self):
     return element_to_str(self.convert_to_xml(), encoding='utf8')
示例#4
0
 def __str__(self):
     return element_to_str(self.convert_to_xml(), encoding='utf8')