summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/plat-irix5/readcd.py3
-rw-r--r--Lib/plat-irix6/readcd.py3
-rw-r--r--Lib/test/test_py3kwarn.py3
3 files changed, 8 insertions, 1 deletions
diff --git a/Lib/plat-irix5/readcd.py b/Lib/plat-irix5/readcd.py
index 5453ce4213..54549e792c 100755
--- a/Lib/plat-irix5/readcd.py
+++ b/Lib/plat-irix5/readcd.py
@@ -1,4 +1,7 @@
# Class interface to the CD module.
+from warnings import warnpy3k
+warnpy3k("the readcd module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
import cd, CD
diff --git a/Lib/plat-irix6/readcd.py b/Lib/plat-irix6/readcd.py
index 5453ce4213..54549e792c 100644
--- a/Lib/plat-irix6/readcd.py
+++ b/Lib/plat-irix6/readcd.py
@@ -1,4 +1,7 @@
# Class interface to the CD module.
+from warnings import warnpy3k
+warnpy3k("the readcd module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
import cd, CD
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py
index 7d5e0a0e8d..6f53ff0ffe 100644
--- a/Lib/test/test_py3kwarn.py
+++ b/Lib/test/test_py3kwarn.py
@@ -135,7 +135,8 @@ class TestStdlibRemovals(unittest.TestCase):
'cdplayer', 'CL', 'cl', 'DEVICE', 'GL',
'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl',
'fm', 'GET', 'GLWS', 'imgfile', 'IN',
- 'IOCTL', 'jpeg', 'panel'),
+ 'IOCTL', 'jpeg', 'panel', 'panelparser',
+ 'readcd'),
'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
'icglue', 'Nav', 'MacOS', 'aepack',
'aetools', 'aetypes', 'applesingle',