diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-10-24 18:14:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-24 18:14:23 (GMT) |
commit | 8cd1dbae32d9303caac3a473d3332f17bc98c921 (patch) | |
tree | 883e8288636eb076d168d2ea57b7a406e2a9d429 /Modules/clinic/_randommodule.c.h | |
parent | 473db47747bb8bc986d88ad81799bcbd88153ac5 (diff) | |
download | cpython-8cd1dbae32d9303caac3a473d3332f17bc98c921.zip cpython-8cd1dbae32d9303caac3a473d3332f17bc98c921.tar.gz cpython-8cd1dbae32d9303caac3a473d3332f17bc98c921.tar.bz2 |
bpo-41052: Fix pickling heap types implemented in C with protocols 0 and 1 (GH-22870)
Diffstat (limited to 'Modules/clinic/_randommodule.c.h')
-rw-r--r-- | Modules/clinic/_randommodule.c.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/Modules/clinic/_randommodule.c.h b/Modules/clinic/_randommodule.c.h index 3322a37..b3cd435 100644 --- a/Modules/clinic/_randommodule.c.h +++ b/Modules/clinic/_randommodule.c.h @@ -109,21 +109,4 @@ _random_Random_getrandbits(RandomObject *self, PyObject *arg) exit: return return_value; } - -PyDoc_STRVAR(_random_Random___reduce____doc__, -"__reduce__($self, /)\n" -"--\n" -"\n"); - -#define _RANDOM_RANDOM___REDUCE___METHODDEF \ - {"__reduce__", (PyCFunction)_random_Random___reduce__, METH_NOARGS, _random_Random___reduce____doc__}, - -static PyObject * -_random_Random___reduce___impl(RandomObject *self); - -static PyObject * -_random_Random___reduce__(RandomObject *self, PyObject *Py_UNUSED(ignored)) -{ - return _random_Random___reduce___impl(self); -} -/*[clinic end generated code: output=450f0961c2c92389 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=cc8a23b2757dc6ba input=a9049054013a1b77]*/ |