From b84715cfe4ca9abe5bf9f8414b6bd08b18c27c12 Mon Sep 17 00:00:00 2001 From: Danila Skachedubov Date: Mon, 16 Oct 2023 12:53:52 +0400 Subject: [PATCH] Fixed creation of a section with symbols )( --- gpoa/frontend/kde_applier.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gpoa/frontend/kde_applier.py b/gpoa/frontend/kde_applier.py index 2dbedf5..398b956 100644 --- a/gpoa/frontend/kde_applier.py +++ b/gpoa/frontend/kde_applier.py @@ -135,6 +135,7 @@ def apply(all_kde_settings, locks_dict, username = None): os.remove(file_path) with open(file_path, 'w') as file: for section, keys in sections.items(): + section = section.replace(')(', '][') file.write(f'[{section}]\n') for key, value in keys.items(): lock = f"{file_name}.{section}.{key}"