blob: 5d189dd5f225426c4d8ef2bcb5d527c74cc2e3de (
plain)
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
28
29
|
From 4831a3f9b5007145f2cb9e3020e83581523d4079 Mon Sep 17 00:00:00 2001
From: Carl George <carl@george.computer>
Date: Tue, 19 Apr 2022 20:20:49 -0500
Subject: [PATCH] Use yaml.safe_load instead of yaml.load (#46)
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(-)
diff --git a/multipart/tests/test_multipart.py b/multipart/tests/test_multipart.py
index 0e38c9c..ab33e7c 100644
--- a/multipart/tests/test_multipart.py
+++ b/multipart/tests/test_multipart.py
@@ -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,
|