Path is not a context manager in python 3.13 (#971)

Reviewed-on: cerc-io/stack-orchestrator#971
Reviewed-by: rachmaninovquar <rachmaninovquar@noreply.git.vdb.to>
This commit is contained in:
roysc committed 2025-10-16 17:55:44 +00:00
1 parent 0e814bd4da
commit 34f3b719e4
4 files changed
+6 -11

No files matched your search

+1 -2
View File
@@ -27,5 +27,4 @@ class Stack:
self.name = name
def init_from_file(self, file_path: Path):
with file_path:
self.obj = get_yaml().load(open(file_path, "r"))
self.obj = get_yaml().load(open(file_path, "r"))