avoid {} set notation. It doesn't seem to be in 2.6

stix2.1
Richard Piazza 2017-05-17 15:51:07 -04:00
parent f56ea8e951
commit 8827149ef0
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class _STIXBase(collections.Mapping):
list_of_properties.remove("type")
current_properties = self.properties_populated()
list_of_properties_populated = set(list_of_properties).intersection(current_properties)
if list_of_properties and (not list_of_properties_populated or list_of_properties_populated == {"extensions"}):
if list_of_properties and (not list_of_properties_populated or list_of_properties_populated == set(["extensions"])):
raise AtLeastOnePropertyError(self.__class__, list_of_properties)
def _check_properties_dependency(self, list_of_properties, list_of_dependent_properties, values=[]):