commit | 650f5161f45390bc3b621bc7db9edfd54e7f59b9 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Wed May 14 21:12:12 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Wed May 14 21:12:12 2008 +0000 |
tree | 53165bcdac718396ee4afb64ce5a35961e9db54f | |
parent | 54c77aa4595a9896f45390d0d0ce6ff47870cca0 [diff] [blame] |
Deprecate CL, CL_old, and cl for 3.0.
diff --git a/Modules/clmodule.c b/Modules/clmodule.c index a535e03..d3e0edf 100644 --- a/Modules/clmodule.c +++ b/Modules/clmodule.c
@@ -961,7 +961,11 @@ initcl(void) { PyObject *m, *d, *x; - + + if (PyErr_WarnPy3k("the cl module has been removed in " + "Python 3.0", 2) < 0) + return; + m = Py_InitModule("cl", cl_methods); if (m == NULL) return;