From eaa7f17ee45e3549808540b573dcdd375a5e270a Mon Sep 17 00:00:00 2001 From: Michael Chisholm Date: Thu, 4 Jun 2020 18:03:15 -0400 Subject: [PATCH] Fix versionability detection: _properties is an OrderedDict not a list of tuples! (despite what it looks like if you glance at it quickly.) --- stix2/versioning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stix2/versioning.py b/stix2/versioning.py index 33b1c59..ca0a495 100644 --- a/stix2/versioning.py +++ b/stix2/versioning.py @@ -117,7 +117,7 @@ def _is_versionable(data): # but do check SCOs cls = class_maps["observables"][obj_type] is_versionable = _VERSIONING_PROPERTIES.issubset( - p[0] for p in cls._properties + cls._properties ) return is_versionable, is_21