comparison libervia/tui/config.py @ 4238:b0c36f3d3e04

core: update `pygobject` version and replace deprecated `configparser.SafeConfigParser`
author Goffi <goffi@goffi.org>
date Sat, 11 May 2024 13:16:13 +0200
parents b620a8e882e1
children
comparison
equal deleted inserted replaced
4237:a1e7e82a8921 4238:b0c36f3d3e04
27 def apply_config(host): 27 def apply_config(host):
28 """Parse configuration and apply found change 28 """Parse configuration and apply found change
29 29
30 raise: can raise various Exceptions if configuration is not good 30 raise: can raise various Exceptions if configuration is not good
31 """ 31 """
32 config = configparser.SafeConfigParser() 32 config = configparser.ConfigParser()
33 config.read(C.CONFIG_FILES) 33 config.read(C.CONFIG_FILES)
34 try: 34 try:
35 options = config.items(C.CONFIG_SECTION) 35 options = config.items(C.CONFIG_SECTION)
36 except configparser.NoSectionError: 36 except configparser.NoSectionError:
37 options = [] 37 options = []