Skip to content

Commit

Permalink
Add compatibility for PyYAML 6 and unpin it. Fixes #43. Fixes #47.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco authored and reubano committed Jan 31, 2024
1 parent 4073952 commit 2a32235
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meza/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ def read_yaml(filepath, mode="r", **kwargs):
... 'integer': 40}
True
"""
return read_any(filepath, yaml.load, mode, **kwargs)
return read_any(filepath, yaml.safe_load, mode, **kwargs)


def get_text(element):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ xlrd>=1.1.0,<2.0.0
dbfread==2.0.4
ijson>=2.3,<3.0.0
beautifulsoup4>=4.6.0,<5.0.0
PyYAML>=4.2b1,<6.0.0
PyYAML>=4.2b1,<7.0.0
pygogo>=0.13.2,<2.0.0

0 comments on commit 2a32235

Please sign in to comment.