Skip to content

Commit 8be5088

Browse files
committed
fix: remove six dependency
1 parent 742f590 commit 8be5088

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

es/baseapi.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
from collections import namedtuple
22
from typing import Any, Dict, List, Optional, Tuple
3+
from urllib import parse
34

45
from elasticsearch import Elasticsearch
56
from elasticsearch import exceptions as es_exceptions
67
from es import exceptions
7-
from six import string_types
8-
from six.moves.urllib import parse
98

109

1110
from .const import DEFAULT_FETCH_SIZE, DEFAULT_SCHEMA, DEFAULT_SQL_PATH
@@ -344,7 +343,7 @@ def apply_parameters(operation: str, parameters: Optional[Dict[str, Any]]) -> st
344343
def escape(value):
345344
if value == "*":
346345
return value
347-
elif isinstance(value, string_types):
346+
elif isinstance(value, str):
348347
return "'{}'".format(value.replace("'", "''"))
349348
elif isinstance(value, bool):
350349
return "TRUE" if value else "FALSE"

0 commit comments

Comments
 (0)