mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Deprecate the pure module for 3.0.
This commit is contained in:
parent
1aed624f7c
commit
9ac3974de8
3 changed files with 16 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue