summaryrefslogtreecommitdiff
path: root/Modules/_randommodule.c
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2017-01-27 12:43:41 +0000
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2017-01-27 12:43:41 +0000
commitbbbab3c96168cea9f872f90da0a385b50f62ca70 (patch)
treedd00609da6492fbc378e8eef70c8cf162ce1e8b0 /Modules/_randommodule.c
parent49851a445bdbd7783f031fbb3e6972b55b885316 (diff)
parenta10bdbd9f7b296da8a546ad430763b2f07dd32b9 (diff)
downloadcpython-bbbab3c96168cea9f872f90da0a385b50f62ca70.tar.gz
Closes #29308: Merged fix from 3.6.
Diffstat (limited to 'Modules/_randommodule.c')
-rw-r--r--Modules/_randommodule.c3
1 files changed, 1 insertions, 2 deletions
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 *