From ecba9986fca37295934f8dd590dce1e807c08009 Mon Sep 17 00:00:00 2001 From: William Ballenthin Date: Mon, 6 Jul 2020 14:07:02 -0600 Subject: [PATCH] pep8 --- scripts/show-capabilities-by-function.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/scripts/show-capabilities-by-function.py b/scripts/show-capabilities-by-function.py index bb73d389..80b09b7b 100644 --- a/scripts/show-capabilities-by-function.py +++ b/scripts/show-capabilities-by-function.py @@ -45,19 +45,18 @@ import sys import logging import collections -import colorama import argparse +import colorama import capa.main import capa.rules import capa.engine import capa.render -import capa.render.utils as rutils import capa.features +import capa.render.utils as rutils import capa.features.freeze import capa.features.extractors.viv - logger = logging.getLogger("capa.show-capabilities-by-function") @@ -125,8 +124,11 @@ def main(argv=None): parser.add_argument("-d", "--debug", action="store_true", help="Enable debugging output on STDERR") parser.add_argument("-q", "--quiet", action="store_true", help="Disable all output but errors") parser.add_argument( - "-f", "--format", choices=[f[0] for f in formats], default="auto", - help="Select sample format, %s" % format_help + "-f", + "--format", + choices=[f[0] for f in formats], + default="auto", + help="Select sample format, %s" % format_help, ) args = parser.parse_args(args=argv) @@ -195,7 +197,8 @@ def main(argv=None): " capa currently only supports analyzing PE files (or shellcode, when using --format sc32|sc64)." ) logger.error( - " If you don't know the input file type, you can try using the `file` utility to guess it.") + " If you don't know the input file type, you can try using the `file` utility to guess it." + ) logger.error("-" * 80) return -1 except capa.main.UnsupportedRuntimeError: @@ -206,7 +209,8 @@ def main(argv=None): logger.error(" It can also run within IDA Pro, using either Python 2.7 or 3.5+.") logger.error(" ") logger.error( - " If you're seeing this message on the command line, please ensure you're running Python 2.7.") + " If you're seeing this message on the command line, please ensure you're running Python 2.7." + ) logger.error("-" * 80) return -1 @@ -235,4 +239,4 @@ def main(argv=None): if __name__ == "__main__": - sys.exit(main()) \ No newline at end of file + sys.exit(main())