From f98b4855e4a70d9643d3062968e42c746dbd2eb7 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Fri, 19 Feb 2016 07:57:42 +0100 Subject: [PATCH] pybind: remove next() on iterator Cython recommends to implement only __next__() methods. http://docs.cython.org/src/userguide/special_methods.html#the-next-method Signed-off-by: Mehdi Abaakouk --- src/pybind/rados/rados.pyx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/pybind/rados/rados.pyx b/src/pybind/rados/rados.pyx index c6677586055c..26ad52b3e1af 100644 --- a/src/pybind/rados/rados.pyx +++ b/src/pybind/rados/rados.pyx @@ -1286,9 +1286,6 @@ cdef class OmapIterator(object): def __iter__(self): return self - def next(self): - return self.__next__() - def __next__(self): """ Get the next key-value pair in the object @@ -1336,9 +1333,6 @@ cdef class ObjectIterator(object): def __iter__(self): return self - def next(self): - return self.__next__() - def __next__(self): """ Get the next object name and locator in the pool @@ -1389,9 +1383,6 @@ cdef class XattrIterator(object): def __iter__(self): return self - def next(self): - return self.__next__() - def __next__(self): """ Get the next xattr on the object @@ -1453,9 +1444,6 @@ ioctx '%s'" % self.ioctx.name) def __iter__(self): return self - def next(self): - return self.__next__() - def __next__(self): """ Get the next Snapshot -- 2.47.3