File tree
Expand file treeCollapse file tree1 file changed
+1
-7
lines changed Expand file treeCollapse file tree1 file changed
+1
-7
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -125,7 +125,7 @@ def __iter__(self):
|
125 | 125 | """The :class:`Page` is an iterator of items."""
|
126 | 126 | return self
|
127 | 127 |
|
128 |
| -def next(self): |
| 128 | +def __next__(self): |
129 | 129 | """Get the next value in the page."""
|
130 | 130 | item = next(self._item_iter)
|
131 | 131 | result = self._item_to_value(self._parent, item)
|
@@ -134,9 +134,6 @@ def next(self):
|
134 | 134 | self._remaining -= 1
|
135 | 135 | return result
|
136 | 136 |
|
137 |
| -# Alias needed for Python 2/3 support. |
138 |
| -__next__ = next |
139 |
| - |
140 | 137 |
|
141 | 138 | def _item_to_value_identity(iterator, item):
|
142 | 139 | """An item to value transformer that returns the item un-changed."""
|
@@ -232,9 +229,6 @@ def __next__(self):
|
232 | 229 | self.__active_iterator = iter(self)
|
233 | 230 | return next(self.__active_iterator)
|
234 | 231 |
|
235 |
| -# Preserve Python 2 compatibility. |
236 |
| -next = __next__ |
237 |
| - |
238 | 232 | def _page_iter(self, increment):
|
239 | 233 | """Generator of pages of API responses.
|
240 | 234 |
|
|
You can’t perform that action at this time.
0 commit comments