summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-07-21 18:47:48 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-07-21 18:47:48 (GMT)
commit5d7428b8ce0ffc79b24b05df2b3d2865db037902 (patch)
treec673d91d8fe112d194cb9bbf45006b8b35838965 /Modules/_ctypes
parent9f2e346911988cda95fec7c901e8d10d34fa9563 (diff)
downloadcpython-5d7428b8ce0ffc79b24b05df2b3d2865db037902.zip
cpython-5d7428b8ce0ffc79b24b05df2b3d2865db037902.tar.gz
cpython-5d7428b8ce0ffc79b24b05df2b3d2865db037902.tar.bz2
Fix merge breakage.
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r--Modules/_ctypes/_ctypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index e1b03a0..e6db969 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -4041,7 +4041,7 @@ Simple_repr(CDataObject *self)
if (val == NULL)
return NULL;
- name = PyUnicode_FromString(self->ob_type->tp_name);
+ name = PyUnicode_FromString(Py_Type(self)->tp_name);
if (name == NULL) {
Py_DECREF(val);
return NULL;