1 parent 42000c2 commit 74a3c2aCopy full SHA for 74a3c2a
1 file changed
cassandra/cluster.py
@@ -4303,7 +4303,7 @@ def __eq__(self, other):
4303
return self._current_rows == other
4304
4305
def __getitem__(self, i):
4306
- if i is 0:
+ if i == 0:
4307
warn("ResultSet indexing support will be removed in 4.0. Consider using "
4308
"ResultSet.one() to get a single row.", DeprecationWarning)
4309
self._enter_list_mode("index operator")
0 commit comments