Skip to content
Browse files

unicode support added in _make_path in esclient.py

  • Loading branch information...
1 parent f84d773 commit 6694dfe914a2bf945ba6172c7ebe45c8fe328c90 @scamurcuoglu scamurcuoglu committed Aug 28, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 esclient.py
View
6 esclient.py
@@ -18,6 +18,10 @@ def get_version():
return "%s.%s.%s" % __version__
+def _utf8_encode(component):
+ return component.encode("utf-8")
+
+
class ESClientException(Exception):
pass
@@ -57,7 +61,7 @@ def _make_path(self, path_components):
ignored.
"""
- path_components = map(str, filter(None, path_components))
+ path_components = map(_utf8_encode, filter(None, path_components))
path_components = map(quote_plus, path_components)
path = '/'.join(path_components)
if not path.startswith('/'):

0 comments on commit 6694dfe

Please sign in to comment.
Something went wrong with that request. Please try again.