Deprecate the pure module for 3.0.

This commit is contained in:
Brett Cannon 2008-05-09 22:51:58 +00:00
parent 1aed624f7c
commit 9ac3974de8
3 changed files with 16 additions and 1 deletions

View file

@ -951,6 +951,10 @@ initpure()
{
PyObject *m, *d;
if (PyErr_WarnPy3k("the pure module has been removed in "
"Python 3.0", 2) < 0)
return;
m = Py_InitModule("pure", pure_methods);
if (m == NULL)
return;