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
Michael Chisholm 2019-06-21 14:26:48 -04:00
parent 8bb6c79f1d
commit 9cc1e6e8c1
1 changed files with 2 additions and 2 deletions

View File

@ -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