File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1010)
1111from pyobas .client import OpenBAS # noqa: F401
1212from pyobas .exceptions import * # noqa: F401,F403,F405
13+ from pyobas .helpers import * # noqa: F401,F403,F405
14+ from pyobas .utils import * # noqa: F401,F403,F405
1315
1416__all__ = [
1517 "__author__" ,
Original file line number Diff line number Diff line change 44from enum import Enum
55from typing import List
66
7- from utils import EnhancedJSONEncoder
8-
7+ from pyobas import utils
98from pyobas ._contracts .contract_utils import ContractCardinality , ContractVariable
109from pyobas ._contracts .variable_helper import VariableHelper
1110
@@ -138,7 +137,7 @@ def prepare_contracts(contracts):
138137 "contract_id" : c .contract_id ,
139138 "contract_labels" : c .label ,
140139 "contract_attack_patterns" : c .attack_patterns ,
141- "contract_content" : json .dumps (c , cls = EnhancedJSONEncoder ),
140+ "contract_content" : json .dumps (c , cls = utils . EnhancedJSONEncoder ),
142141 },
143142 contracts ,
144143 )
You can’t perform that action at this time.
0 commit comments