diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-05-12 21:42:13 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-05-12 21:42:13 (GMT) |
commit | 236819310db3fe6f2fb22d48b780fa6ec253b6c7 (patch) | |
tree | ce5ca9792381d9ced99e8e871324891ddbeb0e28 /Mac | |
parent | f9b54c24114b15ff920249244fe361aee276c248 (diff) | |
download | cpython-236819310db3fe6f2fb22d48b780fa6ec253b6c7.zip cpython-236819310db3fe6f2fb22d48b780fa6ec253b6c7.tar.gz cpython-236819310db3fe6f2fb22d48b780fa6ec253b6c7.tar.bz2 |
Add warnings to and deprecated all those Mac modules
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Modules/ColorPickermodule.c | 3 | ||||
-rw-r--r-- | Mac/Modules/MacOS.c | 3 | ||||
-rw-r--r-- | Mac/Modules/Nav.c | 3 | ||||
-rw-r--r-- | Mac/Modules/OSATerminology.c | 2 | ||||
-rw-r--r-- | Mac/Modules/autoGIL.c | 3 | ||||
-rw-r--r-- | Mac/Modules/icgluemodule.c | 3 |
6 files changed, 17 insertions, 0 deletions
diff --git a/Mac/Modules/ColorPickermodule.c b/Mac/Modules/ColorPickermodule.c index 62b4d5f..c29e0a4 100644 --- a/Mac/Modules/ColorPickermodule.c +++ b/Mac/Modules/ColorPickermodule.c @@ -64,6 +64,9 @@ static char cp_module_documentation[] = void initColorPicker(void) { PyObject *m; + + if (PyErr_WarnPy3k("In 3.x, ColorPicker is removed.", 1) < 0) + return; /* Create the module and add the functions */ m = Py_InitModule4("ColorPicker", cp_methods, 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 @@ initMacOS(void) { PyObject *m, *d; + if (PyErr_WarnPy3k("In 3.x, MacOS is removed.", 1)) + return; + m = Py_InitModule("MacOS", MacOS_Methods); d = PyModule_GetDict(m); diff --git a/Mac/Modules/Nav.c b/Mac/Modules/Nav.c index 6786ea0..3d3914f 100644 --- a/Mac/Modules/Nav.c +++ b/Mac/Modules/Nav.c @@ -916,6 +916,9 @@ void initNav(void) { PyObject *m, *d; + + if (PyErr_WarnPy3k("In 3.x, Nav is removed.", 1)) + return; /* Test that we have NavServices */ if ( !NavServicesAvailable() ) { diff --git a/Mac/Modules/OSATerminology.c b/Mac/Modules/OSATerminology.c index 85ad425..66fb969 100644 --- a/Mac/Modules/OSATerminology.c +++ b/Mac/Modules/OSATerminology.c @@ -89,5 +89,7 @@ static struct PyMethodDef OSATerminology_methods[] = void initOSATerminology(void) { + if (PyErr_WarnPy3k("In 3.x, OSATerminology is removed.", 1) < 0) + return; Py_InitModule("OSATerminology", OSATerminology_methods); }
\ No newline at end of file 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) diff --git a/Mac/Modules/icgluemodule.c b/Mac/Modules/icgluemodule.c index fa50f0d..d995f16 100644 --- a/Mac/Modules/icgluemodule.c +++ b/Mac/Modules/icgluemodule.c @@ -453,6 +453,9 @@ void initicglue(void) { PyObject *m, *d; + + if (PyErr_WarnPy3k("In 3.x, icglue is removed.", 1)) + return; /* Create the module and add the functions */ m = Py_InitModule4("icglue", ic_methods, |