We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d59275 commit 932bfe5Copy full SHA for 932bfe5
bpython/repl.py
@@ -208,16 +208,13 @@ def current(self):
208
raise ValueError('No current match.')
209
return self.matches[self.index]
210
211
- def _next_impl(self):
212
- """Keep this around until we drop 2to3."""
213
- self.index = (self.index + 1) % len(self.matches)
214
- return self.matches[self.index]
215
-
216
def next(self):
217
- return self._next_impl()
+ return self.__next__()
218
219
def __next__(self):
220
+ """Keep this around until we drop 2to3."""
+ self.index = (self.index + 1) % len(self.matches)
+ return self.matches[self.index]
221
222
def previous(self):
223
if self.index <= 0:
0 commit comments