From a072de14be1e8cd992404f300f0104fccedecaa9 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 6 Oct 2013 20:46:08 +0200 Subject: [PATCH] Extending example: use Py_RETURN_NONE --- Doc/extending/extending.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst index e7c3f335d25..a559b56748d 100644 --- a/Doc/extending/extending.rst +++ b/Doc/extending/extending.rst @@ -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[] = {