App: Wrap PyArg_ParseTupleAndKeywords
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
|
||||
#include "StringHasherPy.h"
|
||||
#include "StringHasherPy.cpp"
|
||||
#include <Base/PyWrapParseTupleAndKeywords.h>
|
||||
|
||||
using namespace App;
|
||||
|
||||
@@ -45,8 +46,8 @@ PyObject *StringHasherPy::PyMake(struct _typeobject *, PyObject *, PyObject *)
|
||||
// constructor method
|
||||
int StringHasherPy::PyInit(PyObject* args, PyObject* kwds)
|
||||
{
|
||||
char* kw[] = {nullptr};
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "", kw)) {
|
||||
static const std::array<const char *, 1> kwlist {nullptr};
|
||||
if (!Base::Wrapped_ParseTupleAndKeywords(args, kwds, "", kwlist)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user