mirror of
https://github.com/kennethreitz/records.git
synced 2026-06-05 23:00:20 +00:00
Merge pull request #154 from arokosaki/master
fix for RecordCollection slicing bug
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user