Commits

paulc  committed 0a09e6b

Remove _getitem_ from PagedList

  • Participants
  • Parent commits f1d09e7

Comments (0)

Files changed (1)

File minus-cli.py

     def __iter__(self):
         return PagedListIter(self)
 
-    def __getitem__(self,i):
-        try:
-            return self._results[i]
-        except IndexError:
-            if i < self._total:
-                while self.extend():
-                    try:
-                        return self._results[i]
-                    except IndexError:
-                        pass
-            raise IndexError
-
 class PagedListIter(object):
 
     def __init__(self,pagedlist):