From 20c8399c9ddbc50c37685e67d3d18b43bdf76c2c Mon Sep 17 00:00:00 2001 From: Christoph Zimmermann <40485189+chrisAtRedis@users.noreply.github.com> Date: Fri, 2 Oct 2020 07:13:40 +0200 Subject: [PATCH] Update graph.py Fixed syntax warning for Python 3.8.5 in line # 93. --- redisgraph/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redisgraph/graph.py b/redisgraph/graph.py index 04e3f04..dd0b8d8 100644 --- a/redisgraph/graph.py +++ b/redisgraph/graph.py @@ -90,7 +90,7 @@ def commit(self): query += ','.join([str(edge) for edge in self.edges]) # Discard leading comma. - if query[-1] is ',': + if query[-1] == ',': query = query[:-1] return self.query(query)