summaryrefslogtreecommitdiffstats
path: root/Modules/clmodule.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-14 21:12:12 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-14 21:12:12 (GMT)
commit650f5161f45390bc3b621bc7db9edfd54e7f59b9 (patch)
tree53165bcdac718396ee4afb64ce5a35961e9db54f /Modules/clmodule.c
parent54c77aa4595a9896f45390d0d0ce6ff47870cca0 (diff)
downloadcpython-650f5161f45390bc3b621bc7db9edfd54e7f59b9.zip
cpython-650f5161f45390bc3b621bc7db9edfd54e7f59b9.tar.gz
cpython-650f5161f45390bc3b621bc7db9edfd54e7f59b9.tar.bz2
Deprecate CL, CL_old, and cl for 3.0.
Diffstat (limited to 'Modules/clmodule.c')
-rw-r--r--Modules/clmodule.c6
1 files changed, 5 insertions, 1 deletions
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 @@ void
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;