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)