PyAPI: fast keyword parsing for bpy modules
No functional changes.
This commit is contained in:
@@ -163,7 +163,6 @@ static PyObject *bpy_user_map(PyObject *UNUSED(self), PyObject *args, PyObject *
|
||||
Main *bmain = G.main; /* XXX Ugly, but should work! */
|
||||
#endif
|
||||
|
||||
static const char *kwlist[] = {"subset", "key_types", "value_types", NULL};
|
||||
PyObject *subset = NULL;
|
||||
|
||||
PyObject *key_types = NULL;
|
||||
@@ -173,9 +172,10 @@ static PyObject *bpy_user_map(PyObject *UNUSED(self), PyObject *args, PyObject *
|
||||
|
||||
PyObject *ret = NULL;
|
||||
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(
|
||||
args, kwds, "|O$O!O!:user_map", (char **)kwlist,
|
||||
static const char *_keywords[] = {"subset", "key_types", "value_types", NULL};
|
||||
static _PyArg_Parser _parser = {"|O$O!O!:user_map", _keywords, 0};
|
||||
if (!_PyArg_ParseTupleAndKeywordsFast(
|
||||
args, kwds, &_parser,
|
||||
&subset,
|
||||
&PySet_Type, &key_types,
|
||||
&PySet_Type, &val_types))
|
||||
|
||||
Reference in New Issue
Block a user