1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From d2ddfb5ba7745ec81f3db957155db4b7b762703a Mon Sep 17 00:00:00 2001
From: Carl George <carl@george.computer>
Date: Tue, 19 Apr 2022 19:00:50 -0500
Subject: [PATCH] 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.
https://github.com/yaml/pyyaml/pull/561
https://msg.pyyaml.org/load
Fixes #41
---
multipart/tests/test_multipart.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/multipart/tests/test_multipart.py
+++ b/multipart/tests/test_multipart.py
@@ -709,7 +709,7 @@ for f in os.listdir(http_tests_dir):
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,
|