mirror of
https://github.com/mandiant/capa.git
synced 2026-01-20 00:21:00 -08:00
pep8
This commit is contained in:
@@ -48,7 +48,9 @@ def render_capabilities(doc, ostream):
|
||||
rows.append((capability, rule["meta"]["namespace"]))
|
||||
|
||||
if rows:
|
||||
ostream.write(tabulate.tabulate(rows, headers=[width("CAPABILITY", 50), width("NAMESPACE", 50)], tablefmt="psql"))
|
||||
ostream.write(
|
||||
tabulate.tabulate(rows, headers=[width("CAPABILITY", 50), width("NAMESPACE", 50)], tablefmt="psql")
|
||||
)
|
||||
ostream.write("\n")
|
||||
else:
|
||||
ostream.writeln(rutils.bold("no capabilities found"))
|
||||
@@ -101,7 +103,9 @@ def render_attack(doc, ostream):
|
||||
|
||||
if rows:
|
||||
ostream.write(
|
||||
tabulate.tabulate(rows, headers=[width("ATT&CK Tactic", 20), width("ATT&CK Technique", 80)], tablefmt="psql")
|
||||
tabulate.tabulate(
|
||||
rows, headers=[width("ATT&CK Tactic", 20), width("ATT&CK Technique", 80)], tablefmt="psql"
|
||||
)
|
||||
)
|
||||
ostream.write("\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user