Merge pull request #154 from arokosaki/master

fix for RecordCollection slicing bug
This commit is contained in:
2024-03-29 19:05:18 -04:00
committed by GitHub
+1 -1
View File
@@ -145,7 +145,7 @@ class RecordCollection(object):
if is_int:
key = slice(key, key + 1)
while len(self) < key.stop or key.stop is None:
while key.stop is None or len(self) < key.stop:
try:
next(self)
except StopIteration: