From 2407c494e7fc557e3fa6e80f3bbc3fbabe918dd6 Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Fri, 5 Feb 2016 00:18:49 +0000 Subject: [PATCH] Change post_param from dict to list of tuples to allow list of files --- .../src/main/resources/python/api_client.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/swagger-codegen/src/main/resources/python/api_client.mustache b/modules/swagger-codegen/src/main/resources/python/api_client.mustache index 73f33a0e2e8..3ee9e7cc004 100644 --- a/modules/swagger-codegen/src/main/resources/python/api_client.mustache +++ b/modules/swagger-codegen/src/main/resources/python/api_client.mustache @@ -402,7 +402,7 @@ class ApiClient(object): filedata = f.read() mimetype = mimetypes.\ guess_type(filename)[0] or 'application/octet-stream' - params.append(tuple[k, tuple([filename, filedata, mimetype])]) + params.append(tuple([k, tuple([filename, filedata, mimetype])])) return params