diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-15 02:33:55 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-15 02:33:55 (GMT) |
commit | 044616aa244a7b78c27d774143ad17a72467d4ef (patch) | |
tree | 538a2b2024640ece6b792627f1d4829de1ea129a /Modules/glmodule.c | |
parent | 3a1693a989e4430490e5da25a055042eb6ac3794 (diff) | |
download | cpython-044616aa244a7b78c27d774143ad17a72467d4ef.zip cpython-044616aa244a7b78c27d774143ad17a72467d4ef.tar.gz cpython-044616aa244a7b78c27d774143ad17a72467d4ef.tar.bz2 |
Deprecate DEVICE, GL, gl, and the related modules cgen and cgensupport for removal in 3.0.
Diffstat (limited to 'Modules/glmodule.c')
-rw-r--r-- | Modules/glmodule.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ static struct PyMethodDef gl_methods[] = { 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); } |