mirror of
https://github.com/kennethreitz/records.git
synced 2026-06-05 06:46:17 +00:00
fix records.RecordCollection slicing bug
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user