Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed broken iterator on folder_list

  • Loading branch information...
commit 85d006e7f902da06ca2ea902300785a8d36faf7a 1 parent d98bd13
Sebastian Oliva tian2992 authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 minus/list.py
10 minus/list.py
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.