]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind: remove next() on iterator 7706/head
authorMehdi Abaakouk <sileht@redhat.com>
Fri, 19 Feb 2016 06:57:42 +0000 (07:57 +0100)
committerMehdi Abaakouk <sileht@redhat.com>
Fri, 19 Feb 2016 06:59:08 +0000 (07:59 +0100)
Cython recommends to implement only __next__() methods.

http://docs.cython.org/src/userguide/special_methods.html#the-next-method

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
src/pybind/rados/rados.pyx

index c6677586055c1f7b81ad1ca524d29e4ef10ea7e4..26ad52b3e1afab7ad3d904d8c41386d0064833f5 100644 (file)
@@ -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