Skip to content

Commit acde15e

Browse files
committed
we use our own compat module, not six
1 parent 92c1757 commit acde15e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

elasticsearch/helpers/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
from multiprocessing.dummy import Pool
55
from operator import methodcaller
66

7-
import six
8-
97
from ..exceptions import ElasticsearchException, TransportError
10-
from ..compat import map
8+
from ..compat import map, string_types
119

1210
logger = logging.getLogger('elasticsearch.helpers')
1311

@@ -28,7 +26,7 @@ def expand_action(data):
2826
:meth:`~elasticsearch.Elasticsearch.bulk` api.
2927
"""
3028
# when given a string, assume user wants to index raw json
31-
if isinstance(data, six.string_types):
29+
if isinstance(data, string_types):
3230
return '{"index": {}}', data
3331

3432
# make sure we don't alter the action

0 commit comments

Comments
 (0)