summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/autoGIL.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-12 21:42:13 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-12 21:42:13 (GMT)
commit236819310db3fe6f2fb22d48b780fa6ec253b6c7 (patch)
treece5ca9792381d9ced99e8e871324891ddbeb0e28 /Mac/Modules/autoGIL.c
parentf9b54c24114b15ff920249244fe361aee276c248 (diff)
downloadcpython-236819310db3fe6f2fb22d48b780fa6ec253b6c7.zip
cpython-236819310db3fe6f2fb22d48b780fa6ec253b6c7.tar.gz
cpython-236819310db3fe6f2fb22d48b780fa6ec253b6c7.tar.bz2
Add warnings to and deprecated all those Mac modules
Diffstat (limited to 'Mac/Modules/autoGIL.c')
-rw-r--r--Mac/Modules/autoGIL.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/Modules/autoGIL.c b/Mac/Modules/autoGIL.c
index 3108816..af2e699 100644
--- a/Mac/Modules/autoGIL.c
+++ b/Mac/Modules/autoGIL.c
@@ -134,6 +134,9 @@ initautoGIL(void)
{
PyObject *mod;
+ if (PyErr_WarnPy3k("In 3.x, the autoGIL module is removed.", 1) < 0)
+ return;
+
mod = Py_InitModule4("autoGIL", autoGIL_methods, autoGIL_docs,
NULL, PYTHON_API_VERSION);
if (mod == NULL)