summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/imageop.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/imageop.c b/Modules/imageop.c
index 92f805a..f67cd60 100644
--- a/Modules/imageop.c
+++ b/Modules/imageop.c
@@ -775,6 +775,11 @@ PyMODINIT_FUNC
initimageop(void)
{
PyObject *m;
+
+ if (PyErr_WarnPy3k("the imageop module has been removed in "
+ "Python 3.0", 2) < 0)
+ return;
+
m = Py_InitModule("imageop", imageop_methods);
if (m == NULL)
return;