mirror of https://github.com/pyodide/pyodide.git
Fix invocations of _PyArg_ParseStackAndKeywords (#2382)
This commit is contained in:
parent
952d9092a9
commit
30a863a057
|
@ -710,8 +710,7 @@ JsProxy_toPy(PyObject* self,
|
|||
static struct _PyArg_Parser _parser = { "|$iO:toPy", _keywords, 0 };
|
||||
int depth = -1;
|
||||
PyObject* default_converter = NULL;
|
||||
if (kwnames != NULL &&
|
||||
!_PyArg_ParseStackAndKeywords(
|
||||
if (!_PyArg_ParseStackAndKeywords(
|
||||
args, nargs, kwnames, &_parser, &depth, &default_converter)) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -688,16 +688,16 @@ to_js(PyObject* self,
|
|||
// default_converter.
|
||||
// :to_js - name of this function for error messages
|
||||
static struct _PyArg_Parser _parser = { "O|$ipOOO:to_js", _keywords, 0 };
|
||||
if (kwnames != NULL && !_PyArg_ParseStackAndKeywords(args,
|
||||
nargs,
|
||||
kwnames,
|
||||
&_parser,
|
||||
&obj,
|
||||
&depth,
|
||||
&create_proxies,
|
||||
&pyproxies,
|
||||
&py_dict_converter,
|
||||
&py_default_converter)) {
|
||||
if (!_PyArg_ParseStackAndKeywords(args,
|
||||
nargs,
|
||||
kwnames,
|
||||
&_parser,
|
||||
&obj,
|
||||
&depth,
|
||||
&create_proxies,
|
||||
&pyproxies,
|
||||
&py_dict_converter,
|
||||
&py_default_converter)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue