Commit 3b044ced authored by Georg Brandl's avatar Georg Brandl

Extending example: use Py_RETURN_NONE

parent 64dcecd7
......@@ -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[] = {
......
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