diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-14 20:31:38 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-14 20:31:38 (GMT) |
commit | ddf949f19432ef22b7b42a7054412f83985ff77f (patch) | |
tree | 85de65116c63a2292e3c93984ed7e1a38e1bbab1 /Modules/cdmodule.c | |
parent | 0b6b5236ff47cc5cd87eae52d8a881a91e73e902 (diff) | |
download | cpython-ddf949f19432ef22b7b42a7054412f83985ff77f.zip cpython-ddf949f19432ef22b7b42a7054412f83985ff77f.tar.gz cpython-ddf949f19432ef22b7b42a7054412f83985ff77f.tar.bz2 |
The CD and cd modules for IRIX are deprecated for 3.0.
Diffstat (limited to 'Modules/cdmodule.c')
-rw-r--r-- | Modules/cdmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ void 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) |