summaryrefslogtreecommitdiff
path: root/Lib/python/builtin.swg
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/python/builtin.swg')
-rw-r--r--Lib/python/builtin.swg6
1 files changed, 1 insertions, 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;
}