summaryrefslogtreecommitdiff
path: root/redis/commands/search/query.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-11-09 12:17:09 +0200
committerGitHub <noreply@github.com>2021-11-09 12:17:09 +0200
commit2a52f3f84554f645c5d532e6043c46418fada5e4 (patch)
treee5052df0822df8aeb3cec9983d7f021d12dbaff7 /redis/commands/search/query.py
parent599f5a991eda770799a1aea23848b1442019deeb (diff)
downloadredis-py-2a52f3f84554f645c5d532e6043c46418fada5e4.tar.gz
Removing dependency on six (#1676)
Diffstat (limited to 'redis/commands/search/query.py')
-rw-r--r--redis/commands/search/query.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/redis/commands/search/query.py b/redis/commands/search/query.py
index e2db7a4..85a8255 100644
--- a/redis/commands/search/query.py
+++ b/redis/commands/search/query.py
@@ -1,6 +1,3 @@
-import six
-
-
class Query(object):
"""
Query is used to build complex queries that have more parameters than just
@@ -66,7 +63,7 @@ class Query(object):
if not fields:
return []
return \
- [fields] if isinstance(fields, six.string_types) else list(fields)
+ [fields] if isinstance(fields, str) else list(fields)
def summarize(self, fields=None, context_len=None,
num_frags=None, sep=None):