diff options
author | Georg Brandl <georg@python.org> | 2006-02-17 11:29:04 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-02-17 11:29:04 (GMT) |
commit | b86a54f395f734d5e7f24c6ac14225c5b77dcc1f (patch) | |
tree | b08edb7d13e3bff1885ad918b815b274ab55c068 /Modules/rgbimgmodule.c | |
parent | b56230b30d1dbdd3bbfe54f10a90e7090940a560 (diff) | |
download | cpython-b86a54f395f734d5e7f24c6ac14225c5b77dcc1f.zip cpython-b86a54f395f734d5e7f24c6ac14225c5b77dcc1f.tar.gz cpython-b86a54f395f734d5e7f24c6ac14225c5b77dcc1f.tar.bz2 |
Add deprecation warning to modules deprecated since 2000.
Diffstat (limited to 'Modules/rgbimgmodule.c')
-rw-r--r-- | Modules/rgbimgmodule.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/rgbimgmodule.c b/Modules/rgbimgmodule.c index 67b5521..a2b91c4 100644 --- a/Modules/rgbimgmodule.c +++ b/Modules/rgbimgmodule.c @@ -759,6 +759,11 @@ initrgbimg(void) m = Py_InitModule("rgbimg", rgbimg_methods); if (m == NULL) return; + + if (PyErr_Warn(PyExc_DeprecationWarning, + "the rgbimg module is deprecated")) + return; + d = PyModule_GetDict(m); ImgfileError = PyErr_NewException("rgbimg.error", NULL, NULL); if (ImgfileError != NULL) |