summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-15 03:41:55 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-15 03:41:55 (GMT)
commitd8c41ecc1770d6661273a56cf77c177fb6291b30 (patch)
treef6309c3aae46b3c360932544fea8ea07b421f7ce /Lib
parent6328b297dc9155f2a9e9ae535580dd685dcc24e0 (diff)
downloadcpython-d8c41ecc1770d6661273a56cf77c177fb6291b30.zip
cpython-d8c41ecc1770d6661273a56cf77c177fb6291b30.tar.gz
cpython-d8c41ecc1770d6661273a56cf77c177fb6291b30.tar.bz2
Deprecate IOCTL from IRIX for removal in 3.0.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/plat-irix5/IOCTL.py3
-rw-r--r--Lib/plat-irix6/IOCTL.py3
-rw-r--r--Lib/test/test_py3kwarn.py3
3 files changed, 8 insertions, 1 deletions
diff --git a/Lib/plat-irix5/IOCTL.py b/Lib/plat-irix5/IOCTL.py
index cec3c3f..ffe0f93 100755
--- a/Lib/plat-irix5/IOCTL.py
+++ b/Lib/plat-irix5/IOCTL.py
@@ -3,6 +3,9 @@
# with some manual changes to cope with imperfections in h2py.py.
# The applicability on other systems is not clear; especially non-SYSV
# 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
LIOC = (ord('l')<<8)
diff --git a/Lib/plat-irix6/IOCTL.py b/Lib/plat-irix6/IOCTL.py
index cec3c3f..ffe0f93 100644
--- a/Lib/plat-irix6/IOCTL.py
+++ b/Lib/plat-irix6/IOCTL.py
@@ -3,6 +3,9 @@
# with some manual changes to cope with imperfections in h2py.py.
# The applicability on other systems is not clear; especially non-SYSV
# 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
LIOC = (ord('l')<<8)
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py
index 9964ad5..f8e3961 100644
--- a/Lib/test/test_py3kwarn.py
+++ b/Lib/test/test_py3kwarn.py
@@ -134,7 +134,8 @@ class TestStdlibRemovals(unittest.TestCase):
inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb',
'cdplayer', 'CL', 'cl', 'DEVICE', 'GL',
'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl',
- 'fm', 'GET', 'GLWS', 'imgfile', 'IN'),
+ 'fm', 'GET', 'GLWS', 'imgfile', 'IN',
+ 'IOCTL'),
'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
'icglue', 'Nav', 'MacOS', 'aepack',
'aetools', 'aetypes', 'applesingle',