Document new util method

stix2.0
Emmanuelle Vargas-Gonzalez 2017-11-01 14:21:26 -04:00
parent a17d770d34
commit b2ff16994f
1 changed files with 1 additions and 0 deletions

View File

@ -250,6 +250,7 @@ def revoke(data):
def get_class_hierarchy_names(obj):
"""Given an object, return the names of the class hierarchy."""
names = []
for cls in obj.__class__.__mro__:
names.append(cls.__name__)