File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -131,13 +131,8 @@ tuple_fromarray(PyObject* Py_UNUSED(module), PyObject *args)
131131}
132132
133133static PyObject *
134- tuple_make_single (PyObject * Py_UNUSED (module ), PyObject * args )
134+ tuple_make_single (PyObject * Py_UNUSED (module ), PyObject * one )
135135{
136- PyObject * one ;
137- if (!PyArg_ParseTuple (args , "O" , & one )) {
138- return NULL ;
139- }
140-
141136 return PyTuple_MakeSingle (one );
142137}
143138
@@ -160,7 +155,7 @@ static PyMethodDef test_methods[] = {
160155 {"_tuple_resize" , _tuple_resize , METH_VARARGS },
161156 {"_check_tuple_item_is_NULL" , _check_tuple_item_is_NULL , METH_VARARGS },
162157 {"tuple_fromarray" , tuple_fromarray , METH_VARARGS },
163- {"tuple_make_single" , tuple_make_single , METH_VARARGS },
158+ {"tuple_make_single" , tuple_make_single , METH_O },
164159 {"tuple_make_pair" , tuple_make_pair , METH_VARARGS },
165160 {NULL },
166161};
You can’t perform that action at this time.
0 commit comments