core: update pygobject version and replace deprecated configparser.SafeConfigParser
This commit is contained in:
parent
5b60aaf83c
commit
5bf34b4744
3 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ log = getLogger(__name__)
|
|||
def send_email(config, to_emails, subject="", body="", from_email=None):
|
||||
"""Send an email using SàT configuration
|
||||
|
||||
@param config (SafeConfigParser): the configuration instance
|
||||
@param config (ConfigParser): the configuration instance
|
||||
@param to_emails(list[unicode], unicode): list of recipients
|
||||
if unicode, it will be split to get emails
|
||||
@param subject(unicode): subject of the message
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ def apply_config(host):
|
|||
|
||||
raise: can raise various Exceptions if configuration is not good
|
||||
"""
|
||||
config = configparser.SafeConfigParser()
|
||||
config = configparser.ConfigParser()
|
||||
config.read(C.CONFIG_FILES)
|
||||
try:
|
||||
options = config.items(C.CONFIG_SECTION)
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ dependencies = [
|
|||
"progressbar2 < 3.54",
|
||||
"pydantic ~= 2.4",
|
||||
"pygments < 3",
|
||||
"pygobject < 3.40.1",
|
||||
"pygobject ~= 3.48",
|
||||
"pyopenssl >= 23.2.0",
|
||||
"python-dateutil >= 2.8.1, < 3",
|
||||
# currently disabled due to incompatibility, OTR feature may be removed in
|
||||
|
|
|
|||
Loading…
Reference in a new issue