Remove relics of the old way customization was handled and

enforced, from _STIXBase20 and _STIXBase21.  That awkwardness
is no longer necessary.
pull/1/head
Michael Chisholm 2021-06-25 22:10:31 -04:00
parent 47b864cb4d
commit 70718063d3
2 changed files with 2 additions and 9 deletions

View File

@ -10,10 +10,7 @@ class _STIXBase20(_STIXBase):
class _Observable(_Observable, _STIXBase20):
def __init__(self, **kwargs):
self._properties['extensions'].allow_custom = kwargs.get('allow_custom', False)
super(_Observable, self).__init__(**kwargs)
pass
class _Extension(_Extension, _STIXBase20):

View File

@ -6,11 +6,7 @@ from ..base import (
class _STIXBase21(_STIXBase):
def __init__(self, **kwargs):
if 'extensions' in self._properties:
self._properties['extensions'].allow_custom = kwargs.get('allow_custom', False)
super(_STIXBase21, self).__init__(**kwargs)
pass
class _Observable(_Observable, _STIXBase21):