commit | ddf949f19432ef22b7b42a7054412f83985ff77f | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Wed May 14 20:31:38 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Wed May 14 20:31:38 2008 +0000 |
tree | 85de65116c63a2292e3c93984ed7e1a38e1bbab1 | |
parent | 0b6b5236ff47cc5cd87eae52d8a881a91e73e902 [diff] [blame] |
The CD and cd modules for IRIX are deprecated for 3.0.
diff --git a/Modules/cdmodule.c b/Modules/cdmodule.c index f8efd39..f09b0a4 100644 --- a/Modules/cdmodule.c +++ b/Modules/cdmodule.c
@@ -758,6 +758,10 @@ initcd(void) { PyObject *m, *d; + + if (PyErr_WarnPy3k("the cd module has been removed in " + "Python 3.0", 2) < 0) + return; m = Py_InitModule("cd", CD_methods); if (m == NULL)