diff options
author | Victor Stinner <vstinner@python.org> | 2020-02-07 02:37:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 02:37:06 (GMT) |
commit | daa9756cb6395323d6f291efe5c7d7fdc6b2e9d8 (patch) | |
tree | 363abf13e467be17feb0e3eeffc3abe73c437264 /Modules/grpmodule.c | |
parent | 58ac700fb09497df14d4492b6f820109490b2b88 (diff) | |
download | cpython-daa9756cb6395323d6f291efe5c7d7fdc6b2e9d8.zip cpython-daa9756cb6395323d6f291efe5c7d7fdc6b2e9d8.tar.gz cpython-daa9756cb6395323d6f291efe5c7d7fdc6b2e9d8.tar.bz2 |
bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393)
Replace direct access to PyObject.ob_type with Py_TYPE().
Diffstat (limited to 'Modules/grpmodule.c')
-rw-r--r-- | Modules/grpmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/grpmodule.c b/Modules/grpmodule.c index 81f969c..0e2801f 100644 --- a/Modules/grpmodule.c +++ b/Modules/grpmodule.c @@ -116,7 +116,7 @@ grp_getgrgid_impl(PyObject *module, PyObject *id) PyErr_Clear(); if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, "group id must be int, not %.200", - id->ob_type->tp_name) < 0) { + Py_TYPE(id)->tp_name) < 0) { return NULL; } py_int_id = PyNumber_Long(id); |