mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 19:12:01 -08:00
*: use FORMAT_AUTO instead of string literal
This commit is contained in:
@@ -113,7 +113,9 @@ def main(argv=None):
|
||||
logger.error("%s", str(e))
|
||||
return -1
|
||||
|
||||
if (args.format == "freeze") or (args.format == "auto" and capa.features.freeze.is_freeze(taste)):
|
||||
if (args.format == "freeze") or (
|
||||
args.format == capa.features.common.FORMAT_AUTO and capa.features.freeze.is_freeze(taste)
|
||||
):
|
||||
with open(args.sample, "rb") as f:
|
||||
extractor = capa.features.freeze.load(f.read())
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user