| 389 | else: |
| 390 | lwrite('/>%s' % (eol_, )) |
| 391 | def exportAttributes(self, lwrite, level, already_processed, namespace_='ttp:', name_='ExploitType'): |
| 392 | if self.idref is not None and 'idref' not in already_processed: |
| 393 | already_processed.add('idref') |
| 394 | lwrite(' idref=%s' % (quote_attrib(self.idref), )) |
| 395 | if self.id is not None and 'id' not in already_processed: |
| 396 | already_processed.add('id') |
| 397 | lwrite(' id=%s' % (quote_attrib(self.id), )) |
| 398 | def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='ExploitType', fromsubclass_=False, pretty_print=True): |
| 399 | if pretty_print: |
| 400 | eol_ = '\n' |