Update base_extractor.py with review comments

Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com>
This commit is contained in:
Yacine Elhamer
2023-06-27 11:20:02 +01:00
committed by GitHub
parent 81d35eb645
commit 2f32d4fe49

View File

@@ -339,9 +339,9 @@ class DynamicFeatureExtractor:
example::
extractor = VivisectFeatureExtractor(vw, path)
for feature, va in extractor.get_file_features():
print('0x%x: %s', va, feature)
extractor = CapeFeatureExtractor.from_report(json.loads(buf))
for feature, addr in extractor.get_file_features():
print(addr, feature)
yields:
Tuple[Feature, Address]: feature and its location