fixed pycodestyle failure

stix2.0
Sam Cornwell 2017-11-19 23:00:42 -05:00
parent 78612530ff
commit eff51a2bb8
1 changed files with 1 additions and 0 deletions

View File

@ -256,5 +256,6 @@ def get_class_hierarchy_names(obj):
names.append(cls.__name__)
return names
def get_type_from_id(stix_id):
return stix_id.split('--', 1)[0]