[Bf-blender-cvs] [a6285339ba7] master: Cleanup: remove unused optional argument to imbuf.new
Campbell Barton
noreply at git.blender.org
Mon Jan 4 10:06:10 CET 2021
Commit: a6285339ba75063d61631940a2bad7003e31b4b9
Author: Campbell Barton
Date: Mon Jan 4 20:00:27 2021 +1100
Branches: master
https://developer.blender.org/rBa6285339ba75063d61631940a2bad7003e31b4b9
Cleanup: remove unused optional argument to imbuf.new
While this didn't cause any problems, it was incorrect.
===================================================================
M source/blender/python/generic/imbuf_py_api.c
===================================================================
diff --git a/source/blender/python/generic/imbuf_py_api.c b/source/blender/python/generic/imbuf_py_api.c
index 3ea4550dd50..7247c17c406 100644
--- a/source/blender/python/generic/imbuf_py_api.c
+++ b/source/blender/python/generic/imbuf_py_api.c
@@ -423,7 +423,7 @@ static PyObject *M_imbuf_new(PyObject *UNUSED(self), PyObject *args, PyObject *k
{
int size[2];
static const char *_keywords[] = {"size", NULL};
- static _PyArg_Parser _parser = {"(ii)|i:new", _keywords, 0};
+ static _PyArg_Parser _parser = {"(ii):new", _keywords, 0};
if (!_PyArg_ParseTupleAndKeywordsFast(args, kw, &_parser, &size[0], &size[1])) {
return NULL;
}
More information about the Bf-blender-cvs
mailing list