diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-19 19:21:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-19 19:21:12 +0400 |
commit | 1a620ac9c331cd9a9eb5a378a22818163fd61ab4 (patch) | |
tree | fac82b135d38f5f19ac1542329503720080310f7 /source/blender/python | |
parent | c3b96f33af3d5325b9475b07ef8204e1aa4fcd43 (diff) |
bpy.props.RemoveProperty() py api docs were still incorrect.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_props.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c index 7ffce0e9a93..830c2c8de3a 100644 --- a/source/blender/python/intern/bpy_props.c +++ b/source/blender/python/intern/bpy_props.c @@ -2796,13 +2796,13 @@ static PyObject *BPy_CollectionProperty(PyObject *self, PyObject *args, PyObject } 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 @@ static PyObject *BPy_RemoveProperty(PyObject *self, PyObject *args, PyObject *kw 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; } |