]> granicus.if.org Git - python/commitdiff
Deprecate SV for removal in 3.0.
authorBrett Cannon <bcannon@gmail.com>
Thu, 15 May 2008 04:13:19 +0000 (04:13 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 15 May 2008 04:13:19 +0000 (04:13 +0000)
Lib/plat-irix5/SV.py
Lib/plat-irix6/SV.py
Lib/test/test_py3kwarn.py
Misc/NEWS

index db8efe52d477a9cbc8a5321c2d39d03b5e10bf46..e9e14f8dafa16a252fb5ec9a2021c16f5621a6d7 100755 (executable)
@@ -1,3 +1,7 @@
+from warnings import warnpy3k
+warnpy3k("the SV module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
+
 NTSC_XMAX = 640
 NTSC_YMAX = 480
 PAL_XMAX = 768
index db8efe52d477a9cbc8a5321c2d39d03b5e10bf46..e9e14f8dafa16a252fb5ec9a2021c16f5621a6d7 100644 (file)
@@ -1,3 +1,7 @@
+from warnings import warnpy3k
+warnpy3k("the SV module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
+
 NTSC_XMAX = 640
 NTSC_YMAX = 480
 PAL_XMAX = 768
index 6f53ff0ffec0ecaea37efb9e29b8d8848d902f27..2a591bc43362150ac318ceb06529b7a91c7fc2ab 100644 (file)
@@ -136,7 +136,7 @@ class TestStdlibRemovals(unittest.TestCase):
                                      'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl',
                                      'fm', 'GET', 'GLWS', 'imgfile', 'IN',
                                      'IOCTL', 'jpeg', 'panel', 'panelparser',
-                                     'readcd'),
+                                     'readcd', 'SV'),
                           'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
                                       'icglue', 'Nav', 'MacOS', 'aepack',
                                       'aetools', 'aetypes', 'applesingle',
index dae8a160ae378c81ea900f17e447c763cd707990..2608b7227163b1cf625515d7ec4941c6b967a9d6 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -32,6 +32,8 @@ Extension Modules
 Library
 -------
 
+- The SV module from IRIX has been deprecated for removal in Python 3.0.
+
 - 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