From 71fe50b347983a1db78657fd5443535fe58a7140 Mon Sep 17 00:00:00 2001 From: Honza Kral Date: Wed, 24 Jul 2013 03:33:28 +0200 Subject: [PATCH] Move comment to it's proper place --- 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 ad808630..0997b25a 100644 --- a/elasticsearch/client/utils.py +++ b/elasticsearch/client/utils.py @@ -18,12 +18,12 @@ def _escape(part): if isinstance(part, (list, tuple)): part = ','.join(part) if isinstance(part, (type(''), type(u''))): - # mark ',' as safe for nicer url in logs try: part = part.encode('utf-8') except UnicodeDecodeError: # Python 2 and str, no need to re-encode pass + # mark ',' as safe for nicer url in logs return quote_plus(part, ',') return str(part)