mirror of
https://github.com/mandiant/capa.git
synced 2026-06-12 19:11:32 -07:00
fix: remove unused imports from cache-ruleset.py, detect-binexport2-capabilities.py, show-capabilities-by-function.py
Removes capa.engine, capa.helpers, capa.features, and capa.features.insn imports that were never referenced in each script. Adds missing capa.loader import to show-capabilities-by-function.py which was already being used.
This commit is contained in:
committed by
Willi Ballenthin
parent
7a8a0acaa9
commit
c8d47085ee
@@ -29,10 +29,7 @@ from pathlib import Path
|
||||
|
||||
import capa.main
|
||||
import capa.rules
|
||||
import capa.engine
|
||||
import capa.helpers
|
||||
import capa.rules.cache
|
||||
import capa.features.insn
|
||||
|
||||
logger = logging.getLogger("cache-ruleset")
|
||||
|
||||
|
||||
@@ -39,10 +39,7 @@ import argparse
|
||||
|
||||
import capa.main
|
||||
import capa.rules
|
||||
import capa.engine
|
||||
import capa.loader
|
||||
import capa.helpers
|
||||
import capa.features
|
||||
import capa.exceptions
|
||||
import capa.render.proto
|
||||
import capa.render.verbose
|
||||
|
||||
@@ -64,9 +64,7 @@ import colorama
|
||||
|
||||
import capa.main
|
||||
import capa.rules
|
||||
import capa.engine
|
||||
import capa.helpers
|
||||
import capa.features
|
||||
import capa.loader
|
||||
import capa.exceptions
|
||||
import capa.render.utils as rutils
|
||||
import capa.render.verbose
|
||||
|
||||
Reference in New Issue
Block a user