Skip to content

Commit 506bdb3

Browse files
authored
Fix unclosed file in load_linked_file (#363)
1 parent 46b82f8 commit 506bdb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwl_utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def load_linked_file(
9090
new_url = resolved_path(base_url, link)
9191

9292
if new_url.scheme in ["file://", ""]:
93-
contents = pathlib.Path(new_url.path).open().read()
93+
contents = pathlib.Path(new_url.path).read_text()
9494
else:
9595
try:
9696
contents = (

0 commit comments

Comments
 (0)