Extending example: use Py_RETURN_NONE
This commit is contained in:
parent
29fc4bf5c7
commit
a072de14be
|
@ -719,9 +719,7 @@ Philbrick (philbrick@hks.com)::
|
||||||
action, voltage);
|
action, voltage);
|
||||||
printf("-- Lovely plumage, the %s -- It's %s!\n", type, state);
|
printf("-- Lovely plumage, the %s -- It's %s!\n", type, state);
|
||||||
|
|
||||||
Py_INCREF(Py_None);
|
Py_RETURN_NONE;
|
||||||
|
|
||||||
return Py_None;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyMethodDef keywdarg_methods[] = {
|
static PyMethodDef keywdarg_methods[] = {
|
||||||
|
|
Loading…
Reference in New Issue