From 5720c9854b98a329d8aaf791c73c0455b171ea53 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 11 Sep 2017 20:46:53 +0800 Subject: [PATCH] doc/rados: fix the method names otherwise, sphinx fails to run with py3 Signed-off-by: Kefu Chai --- doc/rados/api/python.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/rados/api/python.rst b/doc/rados/api/python.rst index 6af81632709..258edf5ed93 100644 --- a/doc/rados/api/python.rst +++ b/doc/rados/api/python.rst @@ -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() -- 2.39.5