From 4c3047a9cdff686411077b1ccd5709eb221bf41a Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Tue, 29 Sep 2020 15:05:45 -0400 Subject: API Docs: Use raises field list syntax See https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#info-field-lists --- source/blender/python/intern/bpy_rna.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source/blender/python/intern/bpy_rna.c') diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index cac82b158d3..e71adbfdf62 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -8708,11 +8708,8 @@ PyDoc_STRVAR(pyrna_register_class_doc, " If the class has a *register* class method it will be called\n" " before registration.\n" "\n" - " .. note::\n" - "\n" - " :exc:`ValueError` exception is raised if the class is not a\n" - " subclass of a registerable blender class.\n" - "\n"); + " :raises ValueError:\n" + " if the class is not a subclass of a registerable blender class.\n"); PyMethodDef meth_bpy_register_class = { "register_class", pyrna_register_class, METH_O, pyrna_register_class_doc}; static PyObject *pyrna_register_class(PyObject *UNUSED(self), PyObject *py_class) -- cgit v1.2.3