Skip to content

Commit

Permalink
Make sure PyYAML 6 can be used (#61)
Browse files Browse the repository at this point in the history
PyYAML 6.0's changelog says:
"always require Loader arg to `yaml.load()"

Use the safe_load() function instead.

Link: https://github.com/yaml/pyyaml/releases/tag/6.0
  • Loading branch information
bgermann committed Oct 26, 2022
1 parent 32ed7f7 commit 345be09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zlmdb/_database.py
Expand Up @@ -236,7 +236,7 @@ def __iter__(self):
@staticmethod
def parse(filename, klassmap=KV_TYPE_TO_CLASS):
with open(filename) as f:
_meta = yaml.load(f.read())
_meta = yaml.safe_load(f.read())

meta = {}
slots = {}
Expand Down

0 comments on commit 345be09

Please sign in to comment.