From 834ef2c8473b599fc8a031199b4b571815275737 Mon Sep 17 00:00:00 2001 From: Emmanuelle Vargas-Gonzalez Date: Tue, 10 Jul 2018 16:13:29 -0400 Subject: [PATCH] Fix check to collections.Mapping --- stix2/datastore/memory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stix2/datastore/memory.py b/stix2/datastore/memory.py index 23d8329..2434530 100644 --- a/stix2/datastore/memory.py +++ b/stix2/datastore/memory.py @@ -33,7 +33,7 @@ def _add(store, stix_data=None): stix_data (list OR dict OR STIX object): STIX objects to be added """ - if isinstance(stix_data, collections.abc.Mapping): + if isinstance(stix_data, collections.Mapping): if stix_data['type'] == 'bundle': # adding a json bundle - so just grab STIX objects for stix_obj in stix_data.get('objects', []):