diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-12 00:08:34 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-12 00:08:34 (GMT) |
commit | 42bfa90f02f0055ea163df9103ebed873ee1dbb0 (patch) | |
tree | 21b36e7ba36b42f58780624d900a5ca68d33a31f /Modules | |
parent | b61d801adbb7dd13ed1f2706fe537cae970bcfa6 (diff) | |
download | cpython-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.c | 5 |
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; |