diff options
Diffstat (limited to 'Modules/_randommodule.c')
-rw-r--r-- | Modules/_randommodule.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 0d3282d..976054c 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 * |