fix records.RecordCollection slicing bug

This commit is contained in:
arokosaki
2018-06-17 23:56:06 +03:00
parent c5dfc013eb
commit d47f7b8d33
7 changed files with 309 additions and 1 deletions
+1 -1
View File
@@ -147,7 +147,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: