mirror of
https://github.com/MillironX/nfdocs-parser.git
synced 2024-12-22 11:18:16 +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:
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue