commit | 9ac3974de847a3d94a49b70ee7c6a70eaa43bbf6 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Fri May 09 22:51:58 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Fri May 09 22:51:58 2008 +0000 |
tree | 4fe731ef2a4c53a2f2fc49fbbd9f37089705d00c | |
parent | 1aed624f7c6051bc670a846825bd40108d3f8dd5 [diff] [blame] |
Deprecate the pure module for 3.0.
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 @@ { 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;