Change location of DEFAULT_VERSION definition, to be before
the imports. This ensures the attribute will be defined even if there are import loops.master
parent
8bb6c79f1d
commit
9cc1e6e8c1
|
@ -28,6 +28,8 @@
|
|||
|
||||
# flake8: noqa
|
||||
|
||||
DEFAULT_VERSION = '2.1' # Default version will always be the latest STIX 2.X version
|
||||
|
||||
from .confidence import scales
|
||||
from .core import _collect_stix2_mappings, parse, parse_observable
|
||||
from .datastore import CompositeDataSource
|
||||
|
@ -64,5 +66,3 @@ from .v20 import * # This import will always be the latest STIX 2.X version
|
|||
from .version import __version__
|
||||
|
||||
_collect_stix2_mappings()
|
||||
|
||||
DEFAULT_VERSION = '2.1' # Default version will always be the latest STIX 2.X version
|
||||
|
|
Loading…
Reference in New Issue