Skip to content

Commit 997f5a7

Browse files
authored
Merge pull request #342 from HTTP-APIs/develop
Merge to Master
2 parents 99c078f + 69a6676 commit 997f5a7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

openapi_parser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,5 @@ def dump_documentation(hydra_doc: Dict[str, Any]) -> str:
537537
print(exc)
538538
hydra_doc = parse(doc)
539539

540-
f = open("../samples/hydra_doc_sample.py", "w")
541-
f.write(dump_documentation(hydra_doc))
542-
f.close()
540+
with open("../samples/hydra_doc_sample.py", "w") as f:
541+
f.write(dump_documentation(hydra_doc))

0 commit comments

Comments
 (0)