Deprecate DEVICE, GL, gl, and the related modules cgen and cgensupport for removal in 3.0.
diff --git a/Modules/cgen.py b/Modules/cgen.py
index f07d984..c63962b 100644
--- a/Modules/cgen.py
+++ b/Modules/cgen.py
@@ -17,6 +17,9 @@
#
# XXX BUG return arrays generate wrong code
# XXX need to change error returns into gotos to free mallocked arrays
+from warnings import warnpy3k
+warnpy3k("the cgen module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
import string
diff --git a/Modules/glmodule.c b/Modules/glmodule.c
index 6590704..01db9fc 100644
--- a/Modules/glmodule.c
+++ b/Modules/glmodule.c
@@ -7624,5 +7624,10 @@
void
initgl(void)
{
+
+ if (PyErr_WarnPy3k("the gl module has been removed in "
+ "Python 3.0", 2) < 0)
+ return;
+
(void) Py_InitModule("gl", gl_methods);
}