mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-16 03:54:27 +05:00
fix: update scp submodule so duplicate sections are preserved while editing configs (#735)
* Squashed 'kiauh/core/submodules/simple_config_parser/' changes from f5eee99..5bc9e0a 5bc9e0a docs: update README 394dd7b refactor!: improve parsing and writing for config (#5) git-subtree-dir: kiauh/core/submodules/simple_config_parser git-subtree-split: 5bc9e0a50947f1be2f4877a10ab3a632774f82ea * fix(logging): change warning to error message for config creation failure * fix(config): improve readability by using descriptive variable names for options
This commit is contained in:
@@ -48,7 +48,9 @@ def add_config_section(
|
||||
|
||||
if options is not None:
|
||||
for option in reversed(options):
|
||||
scp.set_option(section, option[0], option[1])
|
||||
opt_name = option[0]
|
||||
opt_value = option[1]
|
||||
scp.set_option(section, opt_name, opt_value)
|
||||
|
||||
scp.write_file(cfg_file)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user