CObject use is marked as a Py3k warning, not a deprecation warning

This commit is contained in:
Jesus Cea 2010-11-04 21:39:52 +00:00
parent db31a35aa9
commit 33c722b795
2 changed files with 4 additions and 2 deletions

View file

@ -11,8 +11,7 @@ typedef void (*destructor2)(void *, void*);
static int cobject_deprecation_warning(void)
{
return PyErr_WarnEx(PyExc_PendingDeprecationWarning,
"The CObject type is marked Pending Deprecation in Python 2.7. "
return PyErr_WarnPy3k("CObject type is not supported in 3.x. "
"Please use capsule objects instead.", 1);
}