mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Extending example: use Py_RETURN_NONE
This commit is contained in:
parent
29fc4bf5c7
commit
a072de14be
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue