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

index bfd0133e847e273dcedfa12f31b007dd65af4728..913a147d35b187df383e6d5e2492907abd099bb7 100755 (executable)
@@ -1,4 +1,8 @@
 # Generated by h2py from /usr/include/sys/wait.h
+from warnings import warnpy3k
+warnpy3k("the WAIT module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
+
 _WSTOPPED = 0177
 WNOHANG = 0100
 WEXITED = 0001
index 741af3b99cb97139c94e0c2d2dd0d5c550d6c518..82ff8a1fbad296adffaf5d7365ddc6f637b51690 100644 (file)
@@ -1,4 +1,7 @@
 # Generated by h2py from /usr/include/sys/wait.h
+from warnings import warnpy3k
+warnpy3k("the WAIT module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
 
 # Included from standards.h
 def _W_INT(i): return (i)
index 66cd04bb8b3f1100f46e12df95cabe9f6b75a5fd..b35314f12ffa80f4888d98c5a8dbe4655c906aaa 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', 'SV', 'torgb'),
+                                     'readcd', 'SV', 'torgb', 'WAIT'),
                           'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
                                       'icglue', 'Nav', 'MacOS', 'aepack',
                                       'aetools', 'aetypes', 'applesingle',
index 98d0debe667f5846bf063d0e2fc1bc5b09a9ec3f..829aac68d88ad8cb8e1e9d61fc0357bf4c4a8c13 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -32,6 +32,8 @@ Extension Modules
 Library
 -------
 
+- The WAIT module from IRIX has been deprecated for removal in Python 3.0.
+
 - The torgb module from IRIX has been deprecated for removal in Python 3.0.
 
 - The SV module from IRIX has been deprecated for removal in Python 3.0.