Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Merge requests
!13
F documentation data models
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
F documentation data models
f-documentation-data-models
into
dev
Overview
6
Commits
7
Pipelines
6
Changes
1
Merged
Alexander Schlemmer
requested to merge
f-documentation-data-models
into
dev
3 years ago
Overview
6
Commits
7
Pipelines
6
Changes
1
Expand
0
0
Merge request reports
Viewing commit
eaefb51b
Prev
Next
Show latest version
1 file
+
7
−
4
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
eaefb51b
DOC: format docstring
· eaefb51b
florian
authored
3 years ago
src/caosdb/yamlapi.py
+
7
−
4
Options
@@ -73,10 +73,13 @@ def dict_to_xml(d):
@@ -73,10 +73,13 @@ def dict_to_xml(d):
def
yaml_to_xml
(
yamlstr
):
def
yaml_to_xml
(
yamlstr
):
"""
"""
Load a yaml document from yamlstr and converts it to XML.
yamlstr: The string to load the yaml document from.
Loads a yaml document from yamlstr and converts
Parameters
it to XML.
----------
yamlstr : str
The string to load the yaml document from.
"""
"""
return
dict_to_xml
(
yaml
.
load
(
yamlstr
))
return
dict_to_xml
(
yaml
.
load
(
yamlstr
))
Loading