Skip to content

Commit 3323fe1

Browse files
R3DDY97swilly22
authored andcommitted
to support python3 (#7)
* 'TypeError' in the line 135 data elements are encoded bytes need to use result_set = [res.split(b',') for res in data] instead of result_set = [res.split(',') for res in data] * fix type error * decode byte response to str before splitting
1 parent fd7c36c commit 3323fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisgraph/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def query(self, q):
132132
response = self.redis_con.execute_command("GRAPH.QUERY", self.name, q)
133133
data = response[0]
134134
statistics = response[1]
135-
result_set = [res.split(',') for res in data]
135+
result_set = [res.decode().split(',') for res in data]
136136
return QueryResult(result_set, statistics)
137137

138138
def execution_plan(self, query):

0 commit comments

Comments
 (0)