Skip to content

Commit

Permalink
fix: migrates pyyaml 6.0.
Browse files Browse the repository at this point in the history
yaml.load without Loader is deprecated. (https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation)

Pins PyYaml 6.0 and sets yaml FullLoader as Loader.
  • Loading branch information
Joice M. Joseph committed Oct 31, 2022
1 parent 4ff60a9 commit 8b7124a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def load_data(file):
with open(file, "r") as f:
out = yaml.load(f.read())
out = yaml.load(f.read(), Loader=yaml.FullLoader)
for item in out:
item["languages"].sort()
item["tags"].sort()
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
jinja2
jinja2
pyyaml>=6.0

0 comments on commit 8b7124a

Please sign in to comment.