From bfeec6d871e3db2e0ddfdef01387913bc19cadd4 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 23 Jan 2017 09:47:21 +0200 Subject: Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever possible. Patch is writen with Coccinelle. --- Modules/_randommodule.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Modules/_randommodule.c') diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 0d3282db8f..976054cd9b 100644 --- a/Modules/_randommodule.c +++ b/Modules/_randommodule.c @@ -376,8 +376,7 @@ random_setstate(RandomObject *self, PyObject *state) } self->index = (int)index; - Py_INCREF(Py_None); - return Py_None; + Py_RETURN_NONE; } static PyObject * -- cgit v1.2.1