]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/rados: fix the method names
authorKefu Chai <kchai@redhat.com>
Mon, 11 Sep 2017 12:46:53 +0000 (20:46 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 11 Sep 2017 15:05:26 +0000 (23:05 +0800)
otherwise, sphinx fails to run with py3

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/rados/api/python.rst

index 6af816327094a62d559fbb8d5cde091c9f68a173..258edf5ed9314f54bc4a48e4d6335f97800307ec 100644 (file)
@@ -374,7 +374,7 @@ of objects or XATTRs and iterate over them.
 
 .. automethod:: Ioctx.set_xattr(key, xattr_name, xattr_value)
 .. automethod:: Ioctx.get_xattrs(oid)
-.. automethod:: XattrIterator.next()
+.. automethod:: XattrIterator.__next__()
 .. automethod:: Ioctx.get_xattr(key, xattr_name)
 .. automethod:: Ioctx.rm_xattr(key, xattr_name)
 
@@ -389,7 +389,7 @@ you may perform synchronous operations on the  objects. For asynchronous
 operations, you should use the I/O context methods.
 
 .. automethod:: Ioctx.list_objects()
-.. automethod:: ObjectIterator.next()
+.. automethod:: ObjectIterator.__next__()
 .. automethod:: Object.read(length = 1024*1024)
 .. automethod:: Object.write(string_to_write)
 .. automethod:: Object.get_xattrs()