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);
|
||||
printf("-- Lovely plumage, the %s -- It's %s!\n", type, state);
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
|
||||
return Py_None;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static PyMethodDef keywdarg_methods[] = {
|
||||
|
|
Loading…
Reference in New Issue