summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-15 04:17:35 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-15 04:17:35 (GMT)
commit74a596c068ba46120a01bd09033065682aa8c309 (patch)
tree453a56e224effa5494346cf63b1861dcfd806b2f
parentf56b6aeb06b220ed78b951e7b5cec128db15444a (diff)
downloadcpython-74a596c068ba46120a01bd09033065682aa8c309.zip
cpython-74a596c068ba46120a01bd09033065682aa8c309.tar.gz
cpython-74a596c068ba46120a01bd09033065682aa8c309.tar.bz2
Deprecate WAIT for removal in 3.0.
-rwxr-xr-xLib/plat-irix5/WAIT.py4
-rw-r--r--Lib/plat-irix6/WAIT.py3
-rw-r--r--Lib/test/test_py3kwarn.py2
-rw-r--r--Misc/NEWS2
4 files changed, 10 insertions, 1 deletions
diff --git a/Lib/plat-irix5/WAIT.py b/Lib/plat-irix5/WAIT.py
index bfd0133..913a147 100755
--- a/Lib/plat-irix5/WAIT.py
+++ b/Lib/plat-irix5/WAIT.py
@@ -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
diff --git a/Lib/plat-irix6/WAIT.py b/Lib/plat-irix6/WAIT.py
index 741af3b..82ff8a1 100644
--- a/Lib/plat-irix6/WAIT.py
+++ b/Lib/plat-irix6/WAIT.py
@@ -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)
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py
index 66cd04b..b35314f 100644
--- a/Lib/test/test_py3kwarn.py
+++ b/Lib/test/test_py3kwarn.py
@@ -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',
diff --git a/Misc/NEWS b/Misc/NEWS
index 98d0deb..829aac6 100644
--- 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.