bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393)

Replace direct access to PyObject.ob_type with Py_TYPE().
This commit is contained in:
Victor Stinner 2020-02-07 03:37:06 +01:00 committed by GitHub
parent 58ac700fb0
commit daa9756cb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 40 additions and 40 deletions

View file

@ -1976,7 +1976,7 @@ fast_save_enter(PicklerObject *self, PyObject *obj)
PyErr_Format(PyExc_ValueError,
"fast mode: can't pickle cyclic objects "
"including object type %.200s at %p",
obj->ob_type->tp_name, obj);
Py_TYPE(obj)->tp_name, obj);
self->fast_nesting = -1;
return 0;
}