diff options
author | Jeroen Demeyer <jeroen.k.demeyer@gmail.com> | 2020-02-18 13:14:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-18 13:14:46 (GMT) |
commit | 24bba8cf5b8db25c19bcd1d94e8e356874d1c723 (patch) | |
tree | 66da76634598a2a6bc47792cb38019adea634290 /Objects/methodobject.c | |
parent | 5d38517aa1836542a5417b724c093bcb245f0f47 (diff) | |
download | cpython-24bba8cf5b8db25c19bcd1d94e8e356874d1c723.zip cpython-24bba8cf5b8db25c19bcd1d94e8e356874d1c723.tar.gz cpython-24bba8cf5b8db25c19bcd1d94e8e356874d1c723.tar.bz2 |
bpo-36347: stop using RESTRICTED constants (GH-12684)
The constants `RESTRICTED` and `PY_WRITE_RESTRICTED` no longer have a meaning in Python 3. Therefore, CPython should not use them.
CC @matrixise
https://bugs.python.org/issue36347
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r-- | Objects/methodobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c index 1d54c4c..0d45705 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -222,7 +222,7 @@ static PyGetSetDef meth_getsets [] = { #define OFF(x) offsetof(PyCFunctionObject, x) static PyMemberDef meth_members[] = { - {"__module__", T_OBJECT, OFF(m_module), PY_WRITE_RESTRICTED}, + {"__module__", T_OBJECT, OFF(m_module), 0}, {NULL} }; |