Skip to content

Commit

Permalink
Use yaml.safe_load instead of yaml.load (#46)
Browse files Browse the repository at this point in the history
yaml.load in PyYAML 6 requires a Loader argument.  PyYAML recommends
using SafeLoader, which is implied if you call yaml.safe_load instead.

yaml/pyyaml#561
https://msg.pyyaml.org/load

Fixes #41
  • Loading branch information
carlwgeorge committed Apr 20, 2022
1 parent f731e28 commit 4831a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multipart/tests/test_multipart.py
Expand Up @@ -716,7 +716,7 @@ def test_not_aligned(self):
test_data = f.read()

with open(yaml_file, 'rb') as f:
yaml_data = yaml.load(f)
yaml_data = yaml.safe_load(f)

http_tests.append({
'name': fname,
Expand Down

0 comments on commit 4831a3f

Please sign in to comment.