diff --git a/capa/main.py b/capa/main.py index 64b0509b..e2470d19 100644 --- a/capa/main.py +++ b/capa/main.py @@ -990,13 +990,6 @@ def handle_common_args(args): # disable vivisect-related logging, it's verbose and not relevant for capa users set_vivisect_log_level(logging.CRITICAL) - # Since Python 3.8 cp65001 is an alias to utf_8, but not for Python < 3.8 - # TODO: remove this code when only supporting Python 3.8+ - # https://stackoverflow.com/a/3259271/87207 - import codecs - - codecs.register(lambda name: codecs.lookup("utf-8") if name == "cp65001" else None) - if args.color == "always": colorama.init(strip=False) elif args.color == "auto":