From 7eb4949641383196614c46ea0ca171603decc041 Mon Sep 17 00:00:00 2001 From: Honza Kral Date: Mon, 30 Sep 2013 17:38:37 +0200 Subject: [PATCH] Make sure we encode even values in lists --- elasticsearch/client/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/client/utils.py b/elasticsearch/client/utils.py index 722f9821..620c197c 100644 --- a/elasticsearch/client/utils.py +++ b/elasticsearch/client/utils.py @@ -18,7 +18,7 @@ def _escape(value): # make sequences into comma-separated stings if isinstance(value, (list, tuple)): - value = u','.join(value) + value = ','.join(map(_escape, value)) # dates and datetimes into isoformat elif isinstance(value, (date, datetime)):