Browse files

fixed broken iterator on folder_list

  • Loading branch information...
1 parent d98bd13 commit 85d006e7f902da06ca2ea902300785a8d36faf7a @tian2992 tian2992 committed Dec 4, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 minus/list.py
View
10 minus/list.py
@@ -76,15 +76,15 @@ def next(self):
if not self._initialized:
self._initialize()
- if self.current >= self._total:
+ if self._current >= self._total:
raise StopIteration
try:
- next_item = self._items[self.current]
+ next_item = self._items[self._current]
except KeyError:
- self._get_page(int(self.current / self._per_page))
- next_item = self._items[self.current]
+ self._get_page(int(self._current / self._per_page))
+ next_item = self._items[self._current]
- self.current += 1
+ self._current += 1
return next_item

0 comments on commit 85d006e

Please sign in to comment.