summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2010-03-25 00:54:54 (GMT)
committerLarry Hastings <larry@hastings.org>2010-03-25 00:54:54 (GMT)
commit402b73fb8d54ec2b24b52fdd77d389d903fa6c44 (patch)
treeced928b7f7dce754142742e485ed8e836fbc9486 /Modules/socketmodule.c
parent53ff86ea5f0ed27f5eb5b966faf59dac298d6672 (diff)
downloadcpython-402b73fb8d54ec2b24b52fdd77d389d903fa6c44.zip
cpython-402b73fb8d54ec2b24b52fdd77d389d903fa6c44.tar.gz
cpython-402b73fb8d54ec2b24b52fdd77d389d903fa6c44.tar.bz2
Backported PyCapsule from 3.1, and converted most uses of
CObject to PyCapsule.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index fbd0239..d44a691 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -4496,7 +4496,7 @@ init_socket(void)
/* Export C API */
if (PyModule_AddObject(m, PySocket_CAPI_NAME,
- PyCObject_FromVoidPtr((void *)&PySocketModuleAPI, NULL)
+ PyCapsule_New(&PySocketModuleAPI, PySocket_CAPSULE_NAME, NULL)
) != 0)
return;