mirror of https://github.com/MISP/PyTaxonomies
make str more pytonic
parent
8deea78dda
commit
140e3261ef
|
@ -162,10 +162,8 @@ class Taxonomies(collections.Mapping):
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
to_print = ''
|
to_print = ''
|
||||||
for mt_taxonomy in self.all_machinetags():
|
for taxonomy in self.taxonomies.values():
|
||||||
for mt in mt_taxonomy:
|
to_print += "{}\n\n".format(str(taxonomy))
|
||||||
to_print += '{}\n'.format(mt)
|
|
||||||
to_print += '\n'
|
|
||||||
return to_print
|
return to_print
|
||||||
|
|
||||||
def search(self, query, expanded=False):
|
def search(self, query, expanded=False):
|
||||||
|
|
Loading…
Reference in New Issue