commit | 236819310db3fe6f2fb22d48b780fa6ec253b6c7 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Mon May 12 21:42:13 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Mon May 12 21:42:13 2008 +0000 |
tree | ce5ca9792381d9ced99e8e871324891ddbeb0e28 | |
parent | f9b54c24114b15ff920249244fe361aee276c248 [diff] [blame] |
Add warnings to and deprecated all those Mac modules
diff --git a/Mac/Modules/MacOS.c b/Mac/Modules/MacOS.c index 3fe6e0d..becb4b1 100644 --- a/Mac/Modules/MacOS.c +++ b/Mac/Modules/MacOS.c
@@ -603,6 +603,9 @@ { PyObject *m, *d; + if (PyErr_WarnPy3k("In 3.x, MacOS is removed.", 1)) + return; + m = Py_InitModule("MacOS", MacOS_Methods); d = PyModule_GetDict(m);