code style: add fstrings

This commit is contained in:
manasghandat
2023-03-09 17:19:34 +05:30
parent 1f80791f8f
commit 05dbdd4473
37 changed files with 200 additions and 234 deletions

View File

@@ -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)