Deprecate IOCTL from IRIX for removal in 3.0.

This commit is contained in:
Brett Cannon 2008-05-15 03:41:55 +00:00
parent 6328b297dc
commit d8c41ecc17
4 changed files with 10 additions and 1 deletions

View File

@ -3,6 +3,9 @@
# with some manual changes to cope with imperfections in h2py.py. # with some manual changes to cope with imperfections in h2py.py.
# The applicability on other systems is not clear; especially non-SYSV # The applicability on other systems is not clear; especially non-SYSV
# systems may have a totally different set of ioctls. # systems may have a totally different set of ioctls.
from warnings import warnpy3k
warnpy3k("the IOCTL module has been removed in Python 3.0", stacklevel=2)
del warnpy3k
IOCTYPE = 0xff00 IOCTYPE = 0xff00
LIOC = (ord('l')<<8) LIOC = (ord('l')<<8)

View File

@ -3,6 +3,9 @@
# with some manual changes to cope with imperfections in h2py.py. # with some manual changes to cope with imperfections in h2py.py.
# The applicability on other systems is not clear; especially non-SYSV # The applicability on other systems is not clear; especially non-SYSV
# systems may have a totally different set of ioctls. # systems may have a totally different set of ioctls.
from warnings import warnpy3k
warnpy3k("the IOCTL module has been removed in Python 3.0", stacklevel=2)
del warnpy3k
IOCTYPE = 0xff00 IOCTYPE = 0xff00
LIOC = (ord('l')<<8) LIOC = (ord('l')<<8)

View File

@ -134,7 +134,8 @@ class TestStdlibRemovals(unittest.TestCase):
inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb', inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb',
'cdplayer', 'CL', 'cl', 'DEVICE', 'GL', 'cdplayer', 'CL', 'cl', 'DEVICE', 'GL',
'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl', 'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl',
'fm', 'GET', 'GLWS', 'imgfile', 'IN'), 'fm', 'GET', 'GLWS', 'imgfile', 'IN',
'IOCTL'),
'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 IOCTL module from IRIX has been deprecated for removal in Python 3.0.
- The IN module from IRIX has been deprecated for removal in Python 3.0. - The IN module from IRIX has been deprecated for removal in Python 3.0.
- The imgfile module from IRIX has been deprecated for removal in Python 3.0. - The imgfile module from IRIX has been deprecated for removal in Python 3.0.