From 2f8361f946fbb347fd92ae3d5ad93d5bb3ff25be Mon Sep 17 00:00:00 2001 From: didas72 Date: Wed, 19 Nov 2025 20:35:05 +0000 Subject: [PATCH] Patched bad formatting --- mx_convert/mx_convert.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mx_convert/mx_convert.py b/mx_convert/mx_convert.py index 060245b..33d375e 100644 --- a/mx_convert/mx_convert.py +++ b/mx_convert/mx_convert.py @@ -113,7 +113,7 @@ def weaken_handlers_file(path: Path): content = _if.read() myre = re.compile(r"void ([A-Z][A-Za-z]+)_Handler\(void\)") - replaced = myre.sub(r"__attribute__\(\(weak\)\) void \1_Handler\(void\)", content) + replaced = myre.sub(r"__attribute__((weak)) void \1_Handler(void)", content) with open(path, "w") as of: of.write(replaced) diff --git a/pyproject.toml b/pyproject.toml index 18864e1..497d5e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "mx_convert" -version = "0.3.0" +version = "0.3.1" description = "A Cube MX projct conversion helper" authors = [{ name = "Didas72" }] dependencies = []