Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SortedSet.__getitem__: Python uses 1-based indexing on slices.

  • Loading branch information...
commit 0b829156581d39c1fec8b67cc05d08b7ba280c0e 1 parent a6cf484
Ask Solem authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  redish/types.py
View
1  redish/types.py
@@ -220,6 +220,7 @@ def __getitem__(self, s):
if isinstance(s, slice):
i = s.start or 0
j = s.stop or -1
+ j = j - 1
else:
i = j = s
return self.client.zrange(self.name, i, j)
Please sign in to comment.
Something went wrong with that request. Please try again.