|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -import datetime |
6 | | -import difflib |
7 | 5 | from typing import Dict, List, Optional |
8 | 6 |
|
9 | 7 | import stix2 |
10 | 8 | from loguru import logger |
11 | 9 | from rich.progress import track |
12 | | -from stix2 import Filter, MemoryStore |
| 10 | +from stix2 import MemoryStore |
13 | 11 |
|
14 | 12 | from mitreattack.diffStix.core.change_detector import ChangeDetector |
15 | 13 | from mitreattack.diffStix.core.contributor_tracker import ContributorTracker |
|
21 | 19 | from mitreattack.diffStix.formatters.layer_generator import LayerGenerator |
22 | 20 | from mitreattack.diffStix.formatters.markdown_generator import MarkdownGenerator |
23 | 21 | from mitreattack.diffStix.utils.stix_utils import ( |
24 | | - cleanup_values, |
25 | | - deep_copy_stix, |
26 | 22 | get_attack_id, |
27 | | - has_subtechniques, |
28 | | - resolve_datacomponent_parent, |
29 | | -) |
30 | | -from mitreattack.diffStix.utils.url_utils import ( |
31 | | - get_relative_data_component_url, |
32 | | - get_relative_url_from_stix, |
33 | 23 | ) |
34 | 24 | from mitreattack.diffStix.utils.version_utils import ( |
35 | 25 | AttackObjectVersion, |
36 | 26 | get_attack_object_version, |
37 | | - is_major_version_change, |
38 | | - is_minor_version_change, |
39 | | - is_other_version_change, |
40 | | - is_patch_change, |
41 | 27 | version_increment_is_valid, |
42 | 28 | ) |
43 | | -from mitreattack.stix20 import MitreAttackData |
44 | 29 |
|
45 | 30 |
|
46 | 31 | class DiffStix(object): |
|
0 commit comments