Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
synergy
o3skim
Commits
f2d16e67
Commit
f2d16e67
authored
Nov 17, 2020
by
BorjaEst
Browse files
Merge branch '27-implement-yaml-safe-load'
parents
78e9e79e
7a269dc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
o3skim/utils.py
View file @
f2d16e67
...
@@ -66,7 +66,7 @@ def load(yaml_file):
...
@@ -66,7 +66,7 @@ def load(yaml_file):
:rtype: dict
:rtype: dict
"""
"""
with
open
(
yaml_file
,
"r"
)
as
ymlfile
:
with
open
(
yaml_file
,
"r"
)
as
ymlfile
:
config
=
yaml
.
load
(
ymlfile
)
config
=
yaml
.
safe_
load
(
ymlfile
)
logging
.
debug
(
"Configuration data: %s"
,
config
)
logging
.
debug
(
"Configuration data: %s"
,
config
)
return
config
return
config
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment