commit | 42bfa90f02f0055ea163df9103ebed873ee1dbb0 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Mon May 12 00:08:34 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Mon May 12 00:08:34 2008 +0000 |
tree | 21b36e7ba36b42f58780624d900a5ca68d33a31f | |
parent | b61d801adbb7dd13ed1f2706fe537cae970bcfa6 [diff] |
Depreate imageop for removal in 3.0.
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 @@ 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;