From eafe1e2daa9b712b29379fcd195c2ef22435b8e0 Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Tue, 28 Jul 2020 08:11:02 +0200 Subject: Use Py_TYPE in SwigPyBuiltin_SetMetaType --- Lib/python/builtin.swg | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Lib/python/builtin.swg b/Lib/python/builtin.swg index 3360b1320..4f31a8d54 100644 --- a/Lib/python/builtin.swg +++ b/Lib/python/builtin.swg @@ -414,11 +414,7 @@ SwigPyBuiltin_ThisClosure (PyObject *self, void *SWIGUNUSEDPARM(closure)) { SWIGINTERN void SwigPyBuiltin_SetMetaType (PyTypeObject *type, PyTypeObject *metatype) { -#if PY_VERSION_HEX >= 0x03000000 && !defined(PYPY_VERSION) - type->ob_base.ob_base.ob_type = metatype; -#else - type->ob_type = metatype; -#endif + Py_TYPE(type) = metatype; } -- cgit v1.2.1