diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2016-01-12 17:25:43 -0800 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2016-02-08 14:48:14 -0800 |
commit | 75ea6e61ddc4ec4069eba232496453f53f798e53 (patch) | |
tree | b84afb52362bfb3199c4e094b8f26d4d794f626b | |
parent | fec98207a30fc941a2bd4132cfc820358a36c03c (diff) |
framework/log.py: fix next() call
In python 2 < 2.6, generators define a next() method. In python 2.6+
(including 2.7) they should define a __next__ method and are called with
the next() function.
In python 2.6 and 2.7 both are supported, but in 3.x only the __next__
method is supported
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Acked-by: Jose Fonseca <jfonseca@vmware.com>
-rw-r--r-- | framework/log.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/log.py b/framework/log.py index cd6cdc58c..213b04fc3 100644 --- a/framework/log.py +++ b/framework/log.py @@ -121,7 +121,7 @@ class QuietLog(BaseLog): else: self._endcode = '\n' - self.__counter = self._test_counter.next() + self.__counter = next(self._test_counter) self._state['running'].append(self.__counter) def start(self, name): |