Notification time stamped 2021-03-31 17:01:14 UTC
From 0aaae70337f7c0ebc56d7827da228e7010ec03a7 Mon Sep 17 00:00:00 2001
From: František Zatloukal <fzatlouk(a)redhat.com>
Date: Mar 29 2018 11:11:29 +0000
Subject: Whoops, remove patch file from sources, fix build
---
diff --git a/.gitignore b/.gitignore
index 02dc4fe..159afee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,3 @@
/0.3.4.tar.gz
/0.3.5.tar.gz
/0.3.6.tar.gz
-/0001-Fix-arguments-with-type-list-705.patch
diff --git a/0001-Fix-arguments-with-type-list-705.patch
b/0001-Fix-arguments-with-type-list-705.patch
new file mode 100644
index 0000000..5f39816
--- /dev/null
+++ b/0001-Fix-arguments-with-type-list-705.patch
@@ -0,0 +1,62 @@
+From f71b4f61d96c43748ca1cb9002f874a8d8276312 Mon Sep 17 00:00:00 2001
+From: Stephen Pascoe <stephen.pascoe(a)lirico.co.uk>
+Date: Wed, 4 Oct 2017 01:01:47 +0100
+Subject: [PATCH] Fix arguments with type=list (#705)
+
+Closes #681
+---
+ flask_restful/reqparse.py | 2 +-
+ tests/test_reqparse.py | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+), 1 deletion(-)
+
+diff --git a/flask_restful/reqparse.py b/flask_restful/reqparse.py
+index 8fe142e..527bc94 100644
+--- flask_restful/reqparse.py
++++ flask_restful/reqparse.py
+@@ -176,7 +176,7 @@ class Argument(object):
+ values = source.getlist(name)
+ else:
+ values = source.get(name)
+- if not isinstance(values, collections.MutableSequence):
++ if not (isinstance(values, collections.MutableSequence) and
self.action == 'append'):
+ values = [values]
+
+ for value in values:
+diff --git a/tests/test_reqparse.py b/tests/test_reqparse.py
+index ce9ce30..df18ead 100644
+--- tests/test_reqparse.py
++++ tests/test_reqparse.py
+@@ -891,5 +891,30 @@ class ReqParseTestCase(unittest.TestCase):
+ self.assertEquals(args['int1'], 1)
+ self.assertEquals(args['int2'], 2)
+
++ def test_list_argument(self):
++ app = Flask(__name__)
++
++ parser = RequestParser()
++ parser.add_argument('arg1', location='json', type=list)
++
++ with app.test_request_context('/bubble', method="post",
++ data=json.dumps({'arg1': ['foo',
'bar']}),
++ content_type='application/json'):
++ args = parser.parse_args()
++ self.assertEquals(args['arg1'], ['foo', 'bar'])
++
++ def test_list_argument_dict(self):
++ app = Flask(__name__)
++
++ parser = RequestParser()
++ parser.add_argument('arg1', location='json', type=list)
++
++ with app.test_request_context('/bubble', method="post",
++ data=json.dumps({'arg1': [{'foo':
1, 'bar': 2}]}),
++ content_type='application/json'):
++ args = parser.parse_args()
++ self.assertEquals(args['arg1'], [{'foo': 1, 'bar':
2}])
++
++
+ if __name__ == '__main__':
+ unittest.main()
+--
+2.17.0.rc1
+
diff --git a/sources b/sources
index bac41ea..cf99200 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (0001-Fix-arguments-with-type-list-705.patch) =
8e5982644007fddbf9f73af916ea23d26225a940b2c46663cffc2694ba5c81172d1f39c9bd7efb5157f76bb929e5d8120b6623e1898c9aac340876542044d3c6
+SHA512 (0.3.6.tar.gz) =
c5136302111e6c8953e038d31b42b029744111bb916dea7ec8bd5fac2de5e17a86d30a7d04a7335cdc5da25ee13f35ad9a6d284166e11cca0c6fec96d23fd977
https://src.fedoraproject.org/rpms/python-flask-restful/c/0aaae70337f7c0e...