◐ Shell
clean mode source ↗

Message 107201 - Python tracker

PyCObject is deprecated in 2.7 and removed in 3.x.  PyCapsule_Import() should be used instead of PyCObject_Import() and it already has correct signature:

Include/pycapsule.h:PyAPI_FUNC(void *) PyCapsule_Import(const char *name, int no_block);

Since this is not a bug, I don't think it is appropriate to change it in 2.x.