From 62c543c5710d732bccb0244b1230bae65d433326 Mon Sep 17 00:00:00 2001 From: mahaloz Date: Wed, 15 May 2024 15:38:27 -0400 Subject: [PATCH] Remove _dec suffix for decompiler-only based names --- varbert/__init__.py | 2 +- varbert/api.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/varbert/__init__.py b/varbert/__init__.py index 98310e4..ee95392 100644 --- a/varbert/__init__.py +++ b/varbert/__init__.py @@ -1,4 +1,4 @@ -__version__ = "2.1.0" +__version__ = "2.2.0" import importlib.resources import tarfile diff --git a/varbert/api.py b/varbert/api.py index 3664059..eadce58 100644 --- a/varbert/api.py +++ b/varbert/api.py @@ -93,9 +93,9 @@ def predict_variable_names( k: v for k, v in name_pairs if "/*decompiler*/" not in v } else: - # rewrite decompiled based names + # rewrite decompiled based names, remove the comment orig_name_2_popular_name = { - k: v.replace(" /*decompiler*/", "_dec") for k, v in orig_name_2_popular_name.items() + k: v.replace(" /*decompiler*/", "") for k, v in orig_name_2_popular_name.items() } # check after filtering