Skip to content

Commit d2ddfb5

Browse files
committed
Use yaml.safe_load instead of yaml.load
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 Kludex#41
1 parent f731e28 commit d2ddfb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multipart/tests/test_multipart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ def test_not_aligned(self):
716716
test_data = f.read()
717717

718718
with open(yaml_file, 'rb') as f:
719-
yaml_data = yaml.load(f)
719+
yaml_data = yaml.safe_load(f)
720720

721721
http_tests.append({
722722
'name': fname,

0 commit comments

Comments
 (0)