From: Mehdi Abaakouk Date: Fri, 19 Feb 2016 06:57:42 +0000 (+0100) Subject: pybind: remove next() on iterator X-Git-Tag: v10.1.0~358^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f98b4855e4a70d9643d3062968e42c746dbd2eb7;p=ceph.git 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 --- 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