summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-15 03:32:11 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-15 03:32:11 (GMT)
commit4652537ba4433e96a485c5ac9b855786c4a5eb04 (patch)
treebdd66ca61bf43bffcbf2287934daf27df3e95f83 /Modules
parent707e384a7a42a90fd39754e89638ddadef722030 (diff)
downloadcpython-4652537ba4433e96a485c5ac9b855786c4a5eb04.zip
cpython-4652537ba4433e96a485c5ac9b855786c4a5eb04.tar.gz
cpython-4652537ba4433e96a485c5ac9b855786c4a5eb04.tar.bz2
Deprecate imgfile for removal in 3.0.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/imgfile.c5
1 files changed, 5 insertions, 0 deletions
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 @@ void
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;