summaryrefslogtreecommitdiffstats
path: root/Modules/rgbimgmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/rgbimgmodule.c')
-rw-r--r--Modules/rgbimgmodule.c5
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)