From 8827149ef0f123e066ced107141e0373a16ef1b6 Mon Sep 17 00:00:00 2001 From: Richard Piazza Date: Wed, 17 May 2017 15:51:07 -0400 Subject: [PATCH] avoid {} set notation. It doesn't seem to be in 2.6 --- stix2/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stix2/base.py b/stix2/base.py index 7926f43..31cf657 100644 --- a/stix2/base.py +++ b/stix2/base.py @@ -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=[]):