[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54669] trunk/blender/source/blender/ python/intern/bpy_props.c: bpy.props.RemoveProperty() py api docs were still incorrect.
Campbell Barton
ideasman42 at gmail.com
Tue Feb 19 16:21:12 CET 2013
Revision: 54669
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54669
Author: campbellbarton
Date: 2013-02-19 15:21:12 +0000 (Tue, 19 Feb 2013)
Log Message:
-----------
bpy.props.RemoveProperty() py api docs were still incorrect.
Modified Paths:
--------------
trunk/blender/source/blender/python/intern/bpy_props.c
Modified: trunk/blender/source/blender/python/intern/bpy_props.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_props.c 2013-02-19 15:15:34 UTC (rev 54668)
+++ trunk/blender/source/blender/python/intern/bpy_props.c 2013-02-19 15:21:12 UTC (rev 54669)
@@ -2796,13 +2796,13 @@
}
PyDoc_STRVAR(BPy_RemoveProperty_doc,
-".. function:: RemoveProperty(cls, attr)\n"
+".. function:: RemoveProperty(cls, attr="")\n"
"\n"
" Removes a dynamically defined property.\n"
"\n"
-" :arg cls: The class containing the property.\n"
+" :arg cls: The class containing the property (must be a positional argument).\n"
" :type cls: type\n"
-" :arg attr: Property name.\n"
+" :arg attr: Property name (must be passed as a keyword).\n"
" :type attr: string\n"
"\n"
".. note:: Typically this function doesn't need to be accessed directly.\n"
@@ -2821,7 +2821,7 @@
return ret;
}
else if (PyTuple_GET_SIZE(args) > 1) {
- PyErr_SetString(PyExc_ValueError, "all args must be keywords");
+ PyErr_SetString(PyExc_ValueError, "expected one positional arg, one keyword arg");
return NULL;
}
More information about the Bf-blender-cvs
mailing list