Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #878 from mrosanes/next
Browse files Browse the repository at this point in the history
Add method next
  • Loading branch information
Carlos Pascual authored Mar 7, 2019
2 parents c229aa9 + 1b3fada commit 284aed2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/taurus/core/util/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,8 @@ def __next__(self):
self._index += 1
return self.current()

next = __next__

def previous(self):
'''goes one item back in the list and returns it'''
self._index -= 1
Expand Down

0 comments on commit 284aed2

Please sign in to comment.