mirror of
https://github.com/python/cpython.git
synced 2025-11-11 22:55:08 +00:00
The CD and cd modules for IRIX are deprecated for 3.0.
This commit is contained in:
parent
0b6b5236ff
commit
ddf949f194
5 changed files with 16 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
from warnings import warnpy3k
|
||||||
|
warnpy3k("the CD module has been removed in Python 3.0", stacklevel=2)
|
||||||
|
del warnpy3k
|
||||||
|
|
||||||
ERROR = 0
|
ERROR = 0
|
||||||
NODISC = 1
|
NODISC = 1
|
||||||
READY = 2
|
READY = 2
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
from warnings import warnpy3k
|
||||||
|
warnpy3k("the CD module has been removed in Python 3.0", stacklevel=2)
|
||||||
|
del warnpy3k
|
||||||
|
|
||||||
ERROR = 0
|
ERROR = 0
|
||||||
NODISC = 1
|
NODISC = 1
|
||||||
READY = 2
|
READY = 2
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ class TestStdlibRemovals(unittest.TestCase):
|
||||||
all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new', 'rexec',
|
all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new', 'rexec',
|
||||||
'Bastion', 'compiler', 'dircache', 'fpformat',
|
'Bastion', 'compiler', 'dircache', 'fpformat',
|
||||||
'ihooks', 'mhlib')
|
'ihooks', 'mhlib')
|
||||||
inclusive_platforms = {'irix' : ('pure', 'AL', 'al'),
|
inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd'),
|
||||||
'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
|
'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
|
||||||
'icglue', 'Nav', 'MacOS', 'aepack',
|
'icglue', 'Nav', 'MacOS', 'aepack',
|
||||||
'aetools', 'aetypes', 'applesingle',
|
'aetools', 'aetypes', 'applesingle',
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,9 @@ Extension Modules
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- The cd and CD modules for IRIX have been deprecated for removal in
|
||||||
|
Python 3.0.
|
||||||
|
|
||||||
- The al and AL modules for IRIX have been deprecated for removal in
|
- The al and AL modules for IRIX have been deprecated for removal in
|
||||||
Python 3.0.
|
Python 3.0.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -759,6 +759,10 @@ initcd(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
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);
|
m = Py_InitModule("cd", CD_methods);
|
||||||
if (m == NULL)
|
if (m == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue