summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-12 00:08:34 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-12 00:08:34 (GMT)
commit42bfa90f02f0055ea163df9103ebed873ee1dbb0 (patch)
tree21b36e7ba36b42f58780624d900a5ca68d33a31f /Modules
parentb61d801adbb7dd13ed1f2706fe537cae970bcfa6 (diff)
downloadcpython-42bfa90f02f0055ea163df9103ebed873ee1dbb0.zip
cpython-42bfa90f02f0055ea163df9103ebed873ee1dbb0.tar.gz
cpython-42bfa90f02f0055ea163df9103ebed873ee1dbb0.tar.bz2
Depreate imageop for removal in 3.0.
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;