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

Commit

Permalink
Add method next
Browse files Browse the repository at this point in the history
Add method next, which was removed when the code was addapted
to python3.

'next' is needed, as it is used in other code parts, including
other related projects as taurus-pyqtgraph.
  • Loading branch information
mrosanes committed Mar 7, 2019
1 parent c229aa9 commit 1b3fada
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 1b3fada

Please sign in to comment.