From cd2de082571042f0cf95e06f66c4cc727e82b541 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 15 May 2008 03:51:21 +0000 Subject: Deprecate readcd for removal in 3.0. --- Lib/plat-irix5/readcd.py | 3 +++ Lib/plat-irix6/readcd.py | 3 +++ Lib/test/test_py3kwarn.py | 3 ++- Misc/NEWS | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Lib/plat-irix5/readcd.py b/Lib/plat-irix5/readcd.py index 5453ce4..54549e7 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 5453ce4..54549e7 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 7d5e0a0..6f53ff0 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', diff --git a/Misc/NEWS b/Misc/NEWS index 1421bde..dae8a16 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -32,6 +32,8 @@ Extension Modules Library ------- +- The readcd module from IRIX has been deprecated for removal in Python 3.0. + - The panelparser module from IRIX has been deprecated for removal in Python 3.0. -- cgit v0.12