summaryrefslogtreecommitdiff
path: root/src/zope/proxy/proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/zope/proxy/proxy.h')
-rw-r--r--src/zope/proxy/proxy.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/zope/proxy/proxy.h b/src/zope/proxy/proxy.h
index 509564e..10e5b5b 100644
--- a/src/zope/proxy/proxy.h
+++ b/src/zope/proxy/proxy.h
@@ -32,15 +32,9 @@ Proxy_Import(void)
if (m != NULL) {
PyObject *tmp = PyObject_GetAttrString(m, "_CAPI");
if (tmp != NULL) {
-#if PY_VERSION_HEX < 0x02070000
- if (PyCObject_Check(tmp))
- _proxy_api = (ProxyInterface *)
- PyCObject_AsVoidPtr(tmp);
-#else
if (PyCapsule_CheckExact(tmp))
_proxy_api = (ProxyInterface *)
PyCapsule_GetPointer(tmp, NULL);
-#endif
Py_DECREF(tmp);
}
}