From: Brett Cannon Date: Wed, 14 May 2008 21:08:41 +0000 (+0000) Subject: Deprecate the cdplayer module for IRIX for 3.0. X-Git-Tag: v2.6b1~429 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54c77aa4595a9896f45390d0d0ce6ff47870cca0;p=python Deprecate the cdplayer module for IRIX for 3.0. --- diff --git a/Lib/plat-irix5/cdplayer.py b/Lib/plat-irix5/cdplayer.py index 1c0168f7d2..9e4ba9c318 100755 --- a/Lib/plat-irix5/cdplayer.py +++ b/Lib/plat-irix5/cdplayer.py @@ -13,6 +13,9 @@ # It is also possible to set the above mentioned variables to new values. # You can then use c.write() to write out the changed values to the # .cdplayerrc file. +from warnings import warnpy3k +warnpy3k("the cdplayer module has been removed in Python 3.0", stacklevel=2) +del warnpy3k cdplayerrc = '.cdplayerrc' diff --git a/Lib/plat-irix6/cdplayer.py b/Lib/plat-irix6/cdplayer.py index d4bc7328ac..0f7983b0be 100644 --- a/Lib/plat-irix6/cdplayer.py +++ b/Lib/plat-irix6/cdplayer.py @@ -13,6 +13,9 @@ # It is also possible to set the above mentioned variables to new values. # You can then use c.write() to write out the changed values to the # .cdplayerrc file. +from warnings import warnpy3k +warnpy3k("the cdplayer module has been removed in Python 3.0", stacklevel=2) +del warnpy3k cdplayerrc = '.cdplayerrc' diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index eca1989a2c..2b9eac43e4 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -131,7 +131,8 @@ class TestStdlibRemovals(unittest.TestCase): all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new', 'rexec', 'Bastion', 'compiler', 'dircache', 'fpformat', 'ihooks', 'mhlib') - inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb'), + inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb', + 'cdplayer'), 'darwin' : ('autoGIL', 'Carbon', 'OSATerminology', 'icglue', 'Nav', 'MacOS', 'aepack', 'aetools', 'aetypes', 'applesingle', diff --git a/Misc/NEWS b/Misc/NEWS index af174e1576..659cf72316 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -32,6 +32,8 @@ Extension Modules Library ------- +- The cdplayer module for IRIX has been deprecated for removal in Python 3.0. + - The cddb module for IRIX has been deprecated for removal in Python 3.0. - The cd and CD modules for IRIX have been deprecated for removal in