diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-09 22:51:58 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-09 22:51:58 (GMT) |
commit | 9ac3974de847a3d94a49b70ee7c6a70eaa43bbf6 (patch) | |
tree | 4fe731ef2a4c53a2f2fc49fbbd9f37089705d00c /Modules | |
parent | 1aed624f7c6051bc670a846825bd40108d3f8dd5 (diff) | |
download | cpython-9ac3974de847a3d94a49b70ee7c6a70eaa43bbf6.zip cpython-9ac3974de847a3d94a49b70ee7c6a70eaa43bbf6.tar.gz cpython-9ac3974de847a3d94a49b70ee7c6a70eaa43bbf6.tar.bz2 |
Deprecate the pure module for 3.0.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/puremodule.c | 4 |
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; |