14
0

- Add patch support-pyyaml-6.patch:

* Support PyYAML 6.0+

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-multipart?expand=0&rev=3
This commit is contained in:
2022-02-04 00:44:13 +00:00
committed by Git OBS Bridge
parent c4b4d12279
commit bc12cb193e
3 changed files with 28 additions and 8 deletions

13
support-pyyaml-6.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: python-multipart-0.0.5/multipart/tests/test_multipart.py
===================================================================
--- python-multipart-0.0.5.orig/multipart/tests/test_multipart.py
+++ python-multipart-0.0.5/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,