diff options
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/plat-irix5/CD.py | 4 | ||||
-rw-r--r-- | Lib/plat-irix6/CD.py | 4 | ||||
-rw-r--r-- | Lib/test/test_py3kwarn.py | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/Lib/plat-irix5/CD.py b/Lib/plat-irix5/CD.py index 8c1e03b..5398f46 100755 --- a/Lib/plat-irix5/CD.py +++ b/Lib/plat-irix5/CD.py @@ -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 NODISC = 1 READY = 2 diff --git a/Lib/plat-irix6/CD.py b/Lib/plat-irix6/CD.py index 8c1e03b..5398f46 100644 --- a/Lib/plat-irix6/CD.py +++ b/Lib/plat-irix6/CD.py @@ -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 NODISC = 1 READY = 2 diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 4dfc842..439a58c 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -131,7 +131,7 @@ class TestStdlibRemovals(unittest.TestCase): all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new', 'rexec', 'Bastion', 'compiler', 'dircache', 'fpformat', 'ihooks', 'mhlib') - inclusive_platforms = {'irix' : ('pure', 'AL', 'al'), + inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd'), 'darwin' : ('autoGIL', 'Carbon', 'OSATerminology', 'icglue', 'Nav', 'MacOS', 'aepack', 'aetools', 'aetypes', 'applesingle', |