From f880f47b3d09e1221f9023df170262a4966978b9 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Wed, 5 Jan 2022 14:12:30 -0600 Subject: [PATCH] Fix YAML deprecation Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- nfdocs-parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nfdocs-parser.py b/nfdocs-parser.py index 645eff7..0f207ca 100755 --- a/nfdocs-parser.py +++ b/nfdocs-parser.py @@ -68,11 +68,11 @@ with open(nextflow_path) as nextflow_file: for i in pos: doc_yaml = doc_yaml + nextflow_lines[i].replace(DOC_STARTER, "") 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": - function_docstrings[proc_name] = yaml.load(doc_yaml) + function_docstrings[proc_name] = yaml.load(doc_yaml, Loader=yaml.SafeLoader) 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 print(process_docstrings)