From 85cfc04bdbcf93fda268aa3354d8e9bc233a4b04 Mon Sep 17 00:00:00 2001 From: doomedraven Date: Mon, 10 Jan 2022 18:37:59 +0100 Subject: [PATCH] Fix deprication warning from IDA ``` if info.procName == "metapc" and info.is_64bit(): ``` Please use "procname" instead of "procName" ("procName" is kept for backward-compatibility, and will be removed soon.) --- capa/features/extractors/ida/global_.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/capa/features/extractors/ida/global_.py b/capa/features/extractors/ida/global_.py index b3181293..cde43a90 100644 --- a/capa/features/extractors/ida/global_.py +++ b/capa/features/extractors/ida/global_.py @@ -40,11 +40,11 @@ def extract_os(): def extract_arch(): info = idaapi.get_inf_structure() - if info.procName == "metapc" and info.is_64bit(): + if info.procname == "metapc" and info.is_64bit(): yield Arch(ARCH_AMD64), 0x0 - elif info.procName == "metapc" and info.is_32bit(): + elif info.procname == "metapc" and info.is_32bit(): yield Arch(ARCH_I386), 0x0 - elif info.procName == "metapc": + elif info.procname == "metapc": logger.debug("unsupported architecture: non-32-bit nor non-64-bit intel") return else: