mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
code style : update remaining files (#1353)
* code style: update string formatting using fstrings --------- Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com> Co-authored-by: Moritz <mr-tz@users.noreply.github.com>
This commit is contained in:
@@ -118,7 +118,7 @@ def render_matches_by_function(doc: rd.ResultDocument):
|
||||
for f in doc.meta.analysis.feature_counts.functions:
|
||||
if not matches_by_function.get(f.address, {}):
|
||||
continue
|
||||
ostream.writeln("function at %s with %d features: " % (capa.render.verbose.format_address(addr), f.count))
|
||||
ostream.writeln(f"function at {capa.render.verbose.format_address(addr)} with {f.count} features: ")
|
||||
for rule_name in sorted(matches_by_function[f.address]):
|
||||
ostream.writeln(" - " + rule_name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user