@@ -274,7 +274,7 @@ static void
274
274
PyCField_dealloc (PyObject * self )
275
275
{
276
276
PyCField_clear ((CFieldObject * )self );
277
- self -> ob_type -> tp_free ((PyObject * )self );
277
+ Py_TYPE ( self ) -> tp_free ((PyObject * )self );
278
278
}
279
279
280
280
static PyObject *
@@ -1175,7 +1175,7 @@ u_set(void *ptr, PyObject *value, Py_ssize_t size)
1175
1175
if (!PyUnicode_Check (value )) {
1176
1176
PyErr_Format (PyExc_TypeError ,
1177
1177
"unicode string expected instead of %s instance" ,
1178
- value -> ob_type -> tp_name );
1178
+ Py_TYPE ( value ) -> tp_name );
1179
1179
return NULL ;
1180
1180
} else
1181
1181
Py_INCREF (value );
@@ -1234,7 +1234,7 @@ U_set(void *ptr, PyObject *value, Py_ssize_t length)
1234
1234
if (!PyUnicode_Check (value )) {
1235
1235
PyErr_Format (PyExc_TypeError ,
1236
1236
"unicode string expected instead of %s instance" ,
1237
- value -> ob_type -> tp_name );
1237
+ Py_TYPE ( value ) -> tp_name );
1238
1238
return NULL ;
1239
1239
}
1240
1240
@@ -1289,7 +1289,7 @@ s_set(void *ptr, PyObject *value, Py_ssize_t length)
1289
1289
if (!PyBytes_Check (value )) {
1290
1290
PyErr_Format (PyExc_TypeError ,
1291
1291
"expected bytes, %s found" ,
1292
- value -> ob_type -> tp_name );
1292
+ Py_TYPE ( value ) -> tp_name );
1293
1293
return NULL ;
1294
1294
}
1295
1295
@@ -1334,7 +1334,7 @@ z_set(void *ptr, PyObject *value, Py_ssize_t size)
1334
1334
}
1335
1335
PyErr_Format (PyExc_TypeError ,
1336
1336
"bytes or integer address expected instead of %s instance" ,
1337
- value -> ob_type -> tp_name );
1337
+ Py_TYPE ( value ) -> tp_name );
1338
1338
return NULL ;
1339
1339
}
1340
1340
@@ -1373,7 +1373,7 @@ Z_set(void *ptr, PyObject *value, Py_ssize_t size)
1373
1373
if (!PyUnicode_Check (value )) {
1374
1374
PyErr_Format (PyExc_TypeError ,
1375
1375
"unicode string or integer address expected instead of %s instance" ,
1376
- value -> ob_type -> tp_name );
1376
+ Py_TYPE ( value ) -> tp_name );
1377
1377
return NULL ;
1378
1378
}
1379
1379
@@ -1416,7 +1416,7 @@ BSTR_set(void *ptr, PyObject *value, Py_ssize_t size)
1416
1416
} else if (!PyUnicode_Check (value )) {
1417
1417
PyErr_Format (PyExc_TypeError ,
1418
1418
"unicode string expected instead of %s instance" ,
1419
- value -> ob_type -> tp_name );
1419
+ Py_TYPE ( value ) -> tp_name );
1420
1420
return NULL ;
1421
1421
}
1422
1422
0 commit comments