mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 23:59:48 -08:00
flake8 checks resolved
This commit is contained in:
@@ -34,6 +34,7 @@ Example:
|
||||
import sys
|
||||
import logging
|
||||
import argparse
|
||||
from pathlib import Path
|
||||
|
||||
import capa.render.json
|
||||
import capa.render.proto
|
||||
@@ -71,8 +72,7 @@ def main(argv=None):
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logging.getLogger().setLevel(logging.INFO)
|
||||
|
||||
with open(args.pb, "rb") as f:
|
||||
pb = f.read()
|
||||
pb = Path(args.pb).read_bytes()
|
||||
|
||||
rdpb = capa.render.proto.capa_pb2.ResultDocument()
|
||||
rdpb.ParseFromString(pb)
|
||||
|
||||
Reference in New Issue
Block a user