Skip to content

Commit 1e382c0

Browse files
authored
Merge pull request #1021 from rkingsbury/patch
Set explicit mode in zopen to address monty FutureWarning
2 parents 00537d7 + 2d6fbb2 commit 1e382c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/maggma/stores/mongolike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ def read_json_file(self, path) -> list:
711711
Args:
712712
path: Path to the JSON file to be read
713713
"""
714-
with zopen(path) as f:
714+
with zopen(path, "r") as f:
715715
data = f.read()
716716
data = data.decode() if isinstance(data, bytes) else data
717717
objects = bson.json_util.loads(data) if "$oid" in data else orjson.loads(data)

0 commit comments

Comments
 (0)