From cc1c495ea5ab7127128a28e9d8772edac6808ab9 Mon Sep 17 00:00:00 2001 From: DariusM Date: Wed, 16 Sep 2015 12:03:30 +0200 Subject: [PATCH] unicode type forgotten in api_client.mustache --- .../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 13ec8ed4396..8b948b5f4e8 100644 --- a/modules/swagger-codegen/src/main/resources/python/api_client.mustache +++ b/modules/swagger-codegen/src/main/resources/python/api_client.mustache @@ -189,7 +189,7 @@ class ApiClient(object): """ if isinstance(obj, type(None)): return None - elif isinstance(obj, (str, int, float, bool, tuple)): + elif isinstance(obj, (str, int, float, bool, tuple, unicode)): return obj elif isinstance(obj, list): return [self.sanitize_for_serialization(sub_obj)