Remove relics of the old way customization was handled and
enforced, from _STIXBase20 and _STIXBase21. That awkwardness is no longer necessary.pull/1/head
parent
47b864cb4d
commit
70718063d3
|
@ -10,10 +10,7 @@ class _STIXBase20(_STIXBase):
|
||||||
|
|
||||||
|
|
||||||
class _Observable(_Observable, _STIXBase20):
|
class _Observable(_Observable, _STIXBase20):
|
||||||
|
pass
|
||||||
def __init__(self, **kwargs):
|
|
||||||
self._properties['extensions'].allow_custom = kwargs.get('allow_custom', False)
|
|
||||||
super(_Observable, self).__init__(**kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
class _Extension(_Extension, _STIXBase20):
|
class _Extension(_Extension, _STIXBase20):
|
||||||
|
|
|
@ -6,11 +6,7 @@ from ..base import (
|
||||||
|
|
||||||
|
|
||||||
class _STIXBase21(_STIXBase):
|
class _STIXBase21(_STIXBase):
|
||||||
|
pass
|
||||||
def __init__(self, **kwargs):
|
|
||||||
if 'extensions' in self._properties:
|
|
||||||
self._properties['extensions'].allow_custom = kwargs.get('allow_custom', False)
|
|
||||||
super(_STIXBase21, self).__init__(**kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
class _Observable(_Observable, _STIXBase21):
|
class _Observable(_Observable, _STIXBase21):
|
||||||
|
|
Loading…
Reference in New Issue