Extending example: use Py_RETURN_NONE

This commit is contained in:
Georg Brandl 2013-10-06 20:46:08 +02:00
parent 29fc4bf5c7
commit a072de14be
1 changed files with 1 additions and 3 deletions

View File

@ -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[] = {