Commit a072de14 authored by Georg Brandl's avatar Georg Brandl

Extending example: use Py_RETURN_NONE

parent 29fc4bf5
...@@ -719,9 +719,7 @@ Philbrick (philbrick@hks.com):: ...@@ -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[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment