There was an error while loading. Please reload this page.
1 parent 92c1757 commit acde15eCopy full SHA for acde15e
elasticsearch/helpers/__init__.py
@@ -4,10 +4,8 @@
4
from multiprocessing.dummy import Pool
5
from operator import methodcaller
6
7
-import six
8
-
9
from ..exceptions import ElasticsearchException, TransportError
10
-from ..compat import map
+from ..compat import map, string_types
11
12
logger = logging.getLogger('elasticsearch.helpers')
13
@@ -28,7 +26,7 @@ def expand_action(data):
28
26
:meth:`~elasticsearch.Elasticsearch.bulk` api.
29
27
"""
30
# when given a string, assume user wants to index raw json
31
- if isinstance(data, six.string_types):
+ if isinstance(data, string_types):
32
return '{"index": {}}', data
33
34
# make sure we don't alter the action
0 commit comments