From bee537137bc3fa4a8c0413d63ea39a0ef13fc130 Mon Sep 17 00:00:00 2001 From: Emmanuelle Vargas-Gonzalez Date: Tue, 26 Jun 2018 11:10:36 -0400 Subject: [PATCH] Update base.py Fix STIXJSONIncludeOptionalDefaultsEncoder call to super() --- stix2/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stix2/base.py b/stix2/base.py index 0fcc4c4..c26f60a 100644 --- a/stix2/base.py +++ b/stix2/base.py @@ -56,7 +56,7 @@ class STIXJSONIncludeOptionalDefaultsEncoder(json.JSONEncoder): elif isinstance(obj, _STIXBase): return dict(obj) else: - return super(STIXJSONEncoder, self).default(obj) + return super(STIXJSONIncludeOptionalDefaultsEncoder, self).default(obj) def get_required_properties(properties):