summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-10-18 21:33:44 (GMT)
committerThomas Heller <theller@ctypes.org>2008-10-18 21:33:44 (GMT)
commit3e06faec4fa7e6afc266ca83ebd5444b1ddbc04a (patch)
treed9414c202f683878c91d47f35150d189d36ad47a /Modules
parent14121854b6ffa1b3460fc3fe43ec9ee0c213b6d5 (diff)
downloadcpython-3e06faec4fa7e6afc266ca83ebd5444b1ddbc04a.zip
cpython-3e06faec4fa7e6afc266ca83ebd5444b1ddbc04a.tar.gz
cpython-3e06faec4fa7e6afc266ca83ebd5444b1ddbc04a.tar.bz2
Modify ctypes types with 'official' functions. Backport from trunk,
snv rev 59943 and 59946.
Diffstat (limited to 'Modules')
-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 51a9cf8..e97f9bb 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -410,7 +410,7 @@ static int
StructType_setattro(PyObject *self, PyObject *key, PyObject *value)
{
/* XXX Should we disallow deleting _fields_? */
- if (-1 == PyObject_GenericSetAttr(self, key, value))
+ if (-1 == PyType_Type.tp_setattro(self, key, value))
return -1;
if (value && PyString_Check(key) &&