Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
36
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rdm-software
SaQC
Commits
a01da98e
Commit
a01da98e
authored
6 years ago
by
Bert Palm
🎇
Browse files
Options
Downloads
Patches
Plain Diff
yaml save loader only choice now
parent
bb0924f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dsl/parser.py
+1
-7
1 addition, 7 deletions
dsl/parser.py
with
1 addition
and
7 deletions
dsl/parser.py
+
1
−
7
View file @
a01da98e
...
...
@@ -5,13 +5,7 @@ import yaml
def
parseFlag
(
expr
):
try
:
# CLoader needs the debian package libyaml-dev, if it is
# not present fall back on default loader.
from
yaml
import
CSafeLoader
as
SafeLoader
except
ImportError
:
from
yaml
import
SafeLoader
as
SafeLoader
content
=
yaml
.
load
(
"
[{:}]
"
.
format
(
expr
),
Loader
=
SafeLoader
)
content
=
yaml
.
load
(
"
[{:}]
"
.
format
(
expr
),
Loader
=
yaml
.
SafeLoader
)
name
=
content
[
0
]
out
=
{}
for
pdict
in
content
[
1
:]:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment