summaryrefslogtreecommitdiffstats
path: root/Modules/puremodule.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-09 22:51:58 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-09 22:51:58 (GMT)
commit9ac3974de847a3d94a49b70ee7c6a70eaa43bbf6 (patch)
tree4fe731ef2a4c53a2f2fc49fbbd9f37089705d00c /Modules/puremodule.c
parent1aed624f7c6051bc670a846825bd40108d3f8dd5 (diff)
downloadcpython-9ac3974de847a3d94a49b70ee7c6a70eaa43bbf6.zip
cpython-9ac3974de847a3d94a49b70ee7c6a70eaa43bbf6.tar.gz
cpython-9ac3974de847a3d94a49b70ee7c6a70eaa43bbf6.tar.bz2
Deprecate the pure module for 3.0.
Diffstat (limited to 'Modules/puremodule.c')
-rw-r--r--Modules/puremodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/puremodule.c b/Modules/puremodule.c
index 95f4bde..ede63ab 100644
--- a/Modules/puremodule.c
+++ b/Modules/puremodule.c
@@ -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;