Skip to content

Commit

Permalink
v0.14.1: fix an issue in load_file api
Browse files Browse the repository at this point in the history
  • Loading branch information
scravy committed Feb 18, 2021
1 parent fd627bf commit 50b5d94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jinsi/__pkginfo__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.14.0"
version = "0.14.1"
2 changes: 2 additions & 0 deletions jinsi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def load_string(s: str, *, args: Dict = None, numtype: type = float) -> Iterator


def load_file(path: str, *, args: Dict = None, numtype: type = float, _open=open) -> Iterator[Value]:
if not args:
args = {}
with _open(path) as file:
docs = loadyaml_all(file)
for doc in docs:
Expand Down

0 comments on commit 50b5d94

Please sign in to comment.