From fdc22798ceedad0cd70982413d993964ffe523b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Mon, 28 Oct 2024 00:14:50 +0100 Subject: [PATCH] Reformat cpp/lang_pack.py with black MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Günther --- cimgen/languages/cpp/lang_pack.py | 36 +++---------------------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/cimgen/languages/cpp/lang_pack.py b/cimgen/languages/cpp/lang_pack.py index 983c41b2..6ca60b50 100644 --- a/cimgen/languages/cpp/lang_pack.py +++ b/cimgen/languages/cpp/lang_pack.py @@ -171,17 +171,7 @@ def insert_get_fn(text, render): return "" label = attribute_json["label"] class_name = attribute_json["domain"] - return ( - ' get_map.emplace("cim:' - + class_name - + "." - + label - + '", &get_' - + class_name - + "_" - + label - + ");\n" - ) + return ' get_map.emplace("cim:' + class_name + "." + label + '", &get_' + class_name + "_" + label + ");\n" def insert_class_get_fn(text, render): @@ -193,17 +183,7 @@ def insert_class_get_fn(text, render): return "" label = attribute_json["label"] class_name = attribute_json["domain"] - return ( - ' get_map.emplace("cim:' - + class_name - + "." - + label - + '", &get_' - + class_name - + "_" - + label - + ");\n" - ) + return ' get_map.emplace("cim:' + class_name + "." + label + '", &get_' + class_name + "_" + label + ");\n" def insert_enum_get_fn(text, render): @@ -213,17 +193,7 @@ def insert_enum_get_fn(text, render): return "" label = attribute_json["label"] class_name = attribute_json["domain"] - return ( - ' get_map.emplace("cim:' - + class_name - + "." - + label - + '", &get_' - + class_name - + "_" - + label - + ");\n" - ) + return ' get_map.emplace("cim:' + class_name + "." + label + '", &get_' + class_name + "_" + label + ");\n" def create_nullptr_assigns(text, render):