Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
resif_data_reporter
Commits
79fde9b2
Commit
79fde9b2
authored
Apr 05, 2019
by
Jonathan Schaeffer
Browse files
Yaml SafeLoader
parent
6f0eba5e
Changes
3
Hide whitespace changes
Inline
Side-by-side
resifdatareporter/__init__.py
View file @
79fde9b2
__version__
=
'0.5.
1
'
__version__
=
'0.5.
3
'
resifdatareporter/resifdatareporter.py
View file @
79fde9b2
...
...
@@ -86,7 +86,7 @@ def scan_volumes(volumes):
def
cli
(
configfile
):
try
:
cfg
=
yaml
.
load
(
configfile
,
Loader
=
yaml
.
C
Loader
)
cfg
=
yaml
.
load
(
configfile
,
Loader
=
yaml
.
Safe
Loader
)
except
Error
as
e
:
print
(
f
"Error reading file
{
configfile
}
"
)
...
...
tests/test_resif_data_reporter.py
View file @
79fde9b2
...
...
@@ -8,7 +8,7 @@ from pprint import pprint
with
open
(
'config.yml.example'
,
'r'
)
as
ymlfile
:
cfg
=
yaml
.
load
(
ymlfile
,
Loader
=
yaml
.
C
Loader
)
cfg
=
yaml
.
load
(
ymlfile
,
Loader
=
yaml
.
Safe
Loader
)
document
=
"""
volumes:
...
...
Write
Preview
Supports
Markdown
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