mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 11:07:53 -08:00
render: vverbose: fixup rendering of imports
This commit is contained in:
@@ -128,7 +128,11 @@ def render_feature(ostream, match: rd.Match, feature: frzf.Feature, indent=0):
|
||||
ostream.write(" " * indent)
|
||||
|
||||
key = feature.type
|
||||
value = getattr(feature, key)
|
||||
if isinstance(feature, frzf.ImportFeature):
|
||||
# fixup access to Python reserved name
|
||||
value = feature.import_
|
||||
else:
|
||||
value = getattr(feature, key)
|
||||
|
||||
if key not in ("regex", "substring"):
|
||||
# like:
|
||||
|
||||
Reference in New Issue
Block a user