def to_xml(self):
root = Element('pov')
cbid = Element('cbid')
cbid.text = self.target
root.append(cbid)
replay = Element('replay')
root.append(replay)
for action in self.actions:
replay.append(action.to_xml())
# hack to make sure all crashes happen regardless of sockets closing
# replay.append(Delay(500).to_xml())
return root
评论列表
文章目录