1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-01-10 13:17:58 +03:00

Fixed creation of a section with symbols )(

This commit is contained in:
Данила Скачедубов 2023-10-16 12:53:52 +04:00 committed by Valery Sinelnikov
parent abad246ab2
commit b84715cfe4

View File

@ -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}"