last flake-y
parent
99276c92fc
commit
a5eca9916c
|
@ -3,20 +3,20 @@ import inspect
|
|||
|
||||
import six
|
||||
from stix2patterns.grammars.STIXPatternLexer import STIXPatternLexer
|
||||
from stix2patterns.grammars.STIXPatternParser import (
|
||||
STIXPatternParser, TerminalNode,
|
||||
)
|
||||
from stix2patterns.grammars.STIXPatternParser import (STIXPatternParser,
|
||||
TerminalNode)
|
||||
from stix2patterns.grammars.STIXPatternVisitor import STIXPatternVisitor
|
||||
from stix2patterns.validator import STIXPatternErrorListener
|
||||
from stix2.patterns import _BooleanExpression
|
||||
|
||||
from antlr4 import CommonTokenStream, InputStream
|
||||
from stix2.patterns import _BooleanExpression
|
||||
|
||||
# need to import all classes because we need to access them via globals()
|
||||
from .patterns import (BinaryConstant, BooleanConstant, FloatConstant,
|
||||
FollowedByObservationExpression, HexConstant,
|
||||
IntegerConstant, RepeatQualifier, StartStopQualifier,
|
||||
StringConstant, TimestampConstant, WithinQualifier)
|
||||
from .patterns import * # noqa
|
||||
from .patterns import (FollowedByObservationExpression, StartStopQualifier, WithinQualifier,
|
||||
RepeatQualifier, StringConstant, IntegerConstant, FloatConstant, HexConstant,
|
||||
BinaryConstant, BooleanConstant, TimestampConstant)
|
||||
|
||||
|
||||
def collapse_lists(lists):
|
||||
|
|
|
@ -54,7 +54,6 @@ from .utils import new_version, revoke
|
|||
from .v20 import * # This import will always be the latest STIX 2.X version
|
||||
from .version import __version__
|
||||
|
||||
|
||||
_collect_stix2_obj_maps()
|
||||
|
||||
DEFAULT_VERSION = "2.0" # Default version will always be the latest STIX 2.X version
|
||||
|
|
|
@ -5,6 +5,7 @@ import base64
|
|||
import binascii
|
||||
import datetime
|
||||
import re
|
||||
|
||||
import six
|
||||
|
||||
from .utils import parse_into_datetime
|
||||
|
|
|
@ -3,7 +3,6 @@ import datetime
|
|||
import pytest
|
||||
|
||||
import stix2
|
||||
|
||||
from stix2.STIXPatternVisitor import create_pattern_object
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue