1
0
mirror of https://github.com/b4tman/sync_ics2gcal synced 2024-09-21 08:58:03 +00:00

safe_load instead of load (yaml)

https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
This commit is contained in:
Dmitry Belyaev 2019-07-09 12:30:50 +03:00
parent 25190d826f
commit a39e08db12
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ def parse_args():
def load_config(): def load_config():
with open('config.yml', 'r', encoding='utf-8') as f: with open('config.yml', 'r', encoding='utf-8') as f:
result = yaml.load(f) result = yaml.safe_load(f)
return result return result

View File

@ -14,7 +14,7 @@ from gcal_sync import (
def load_config(): def load_config():
with open('config.yml', 'r', encoding='utf-8') as f: with open('config.yml', 'r', encoding='utf-8') as f:
result = yaml.load(f) result = yaml.safe_load(f)
return result return result