From 1b3fada0afa8f9fd56acae1d0e4b4dc9c5fc3d00 Mon Sep 17 00:00:00 2001 From: mrosanes Date: Thu, 7 Mar 2019 14:20:06 +0100 Subject: [PATCH] Add method next 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. --- lib/taurus/core/util/containers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/taurus/core/util/containers.py b/lib/taurus/core/util/containers.py index bbc8d762b..8fbd5ce61 100644 --- a/lib/taurus/core/util/containers.py +++ b/lib/taurus/core/util/containers.py @@ -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