Deprecate WAIT for removal in 3.0.

This commit is contained in:
Brett Cannon 2008-05-15 04:17:35 +00:00
parent f56b6aeb06
commit 74a596c068
4 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,8 @@
# Generated by h2py from /usr/include/sys/wait.h # 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 _WSTOPPED = 0177
WNOHANG = 0100 WNOHANG = 0100
WEXITED = 0001 WEXITED = 0001

View File

@ -1,4 +1,7 @@
# Generated by h2py from /usr/include/sys/wait.h # 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 # Included from standards.h
def _W_INT(i): return (i) def _W_INT(i): return (i)

View File

@ -136,7 +136,7 @@ class TestStdlibRemovals(unittest.TestCase):
'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl', 'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl',
'fm', 'GET', 'GLWS', 'imgfile', 'IN', 'fm', 'GET', 'GLWS', 'imgfile', 'IN',
'IOCTL', 'jpeg', 'panel', 'panelparser', 'IOCTL', 'jpeg', 'panel', 'panelparser',
'readcd', 'SV', 'torgb'), 'readcd', 'SV', 'torgb', 'WAIT'),
'darwin' : ('autoGIL', 'Carbon', 'OSATerminology', 'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
'icglue', 'Nav', 'MacOS', 'aepack', 'icglue', 'Nav', 'MacOS', 'aepack',
'aetools', 'aetypes', 'applesingle', 'aetools', 'aetypes', 'applesingle',

View File

@ -32,6 +32,8 @@ Extension Modules
Library 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 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. - The SV module from IRIX has been deprecated for removal in Python 3.0.