commit | 4652537ba4433e96a485c5ac9b855786c4a5eb04 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Thu May 15 03:32:11 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Thu May 15 03:32:11 2008 +0000 |
tree | bdd66ca61bf43bffcbf2287934daf27df3e95f83 | |
parent | 707e384a7a42a90fd39754e89638ddadef722030 [diff] [blame] |
Deprecate imgfile for removal in 3.0.
diff --git a/Modules/imgfile.c b/Modules/imgfile.c index bb85a78..baa6ead 100644 --- a/Modules/imgfile.c +++ b/Modules/imgfile.c
@@ -491,6 +491,11 @@ initimgfile(void) { PyObject *m, *d; + + if (PyErr_WarnPy3k("the imgfile module has been removed in " + "Python 3.0", 2) < 0) + return; + m = Py_InitModule("imgfile", imgfile_methods); if (m == NULL) return;