mirror of
https://github.com/MillironX/nfdocs-parser.git
synced 2024-11-22 08:59:55 +00:00
Fix YAML deprecation
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
157105379e
commit
f880f47b3d
1 changed files with 3 additions and 3 deletions
|
@ -68,11 +68,11 @@ with open(nextflow_path) as nextflow_file:
|
||||||
for i in pos:
|
for i in pos:
|
||||||
doc_yaml = doc_yaml + nextflow_lines[i].replace(DOC_STARTER, "")
|
doc_yaml = doc_yaml + nextflow_lines[i].replace(DOC_STARTER, "")
|
||||||
if proc_type == "process":
|
if proc_type == "process":
|
||||||
process_docstrings[proc_name] = yaml.load(doc_yaml)
|
process_docstrings[proc_name] = yaml.load(doc_yaml, Loader=yaml.SafeLoader)
|
||||||
elif proc_type == "function":
|
elif proc_type == "function":
|
||||||
function_docstrings[proc_name] = yaml.load(doc_yaml)
|
function_docstrings[proc_name] = yaml.load(doc_yaml, Loader=yaml.SafeLoader)
|
||||||
elif proc_type == "workflow":
|
elif proc_type == "workflow":
|
||||||
workflow_docstrings[proc_name] = yaml.load(doc_yaml)
|
workflow_docstrings[proc_name] = yaml.load(doc_yaml, Loader=yaml.SafeLoader)
|
||||||
|
|
||||||
# Display the results so far
|
# Display the results so far
|
||||||
print(process_docstrings)
|
print(process_docstrings)
|
||||||
|
|
Loading…
Reference in a new issue