forked from pool/python-python-multipart
- 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:
13
support-pyyaml-6.patch
Normal file
13
support-pyyaml-6.patch
Normal 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,
|
Reference in New Issue
Block a user