[Python-checkins] r63285 - in python/trunk: Lib/plat-irix5/IOCTL.py Lib/plat-irix6/IOCTL.py Lib/test/test_py3kwarn.py Misc/NEWS

brett.cannon python-checkins at python.org
Thu May 15 05:41:55 CEST 2008


Author: brett.cannon
Date: Thu May 15 05:41:55 2008
New Revision: 63285

Log:
Deprecate IOCTL from IRIX for removal in 3.0.

Modified:
   python/trunk/Lib/plat-irix5/IOCTL.py
   python/trunk/Lib/plat-irix6/IOCTL.py
   python/trunk/Lib/test/test_py3kwarn.py
   python/trunk/Misc/NEWS

Modified: python/trunk/Lib/plat-irix5/IOCTL.py
==============================================================================
--- python/trunk/Lib/plat-irix5/IOCTL.py	(original)
+++ python/trunk/Lib/plat-irix5/IOCTL.py	Thu May 15 05:41:55 2008
@@ -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)

Modified: python/trunk/Lib/plat-irix6/IOCTL.py
==============================================================================
--- python/trunk/Lib/plat-irix6/IOCTL.py	(original)
+++ python/trunk/Lib/plat-irix6/IOCTL.py	Thu May 15 05:41:55 2008
@@ -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)

Modified: python/trunk/Lib/test/test_py3kwarn.py
==============================================================================
--- python/trunk/Lib/test/test_py3kwarn.py	(original)
+++ python/trunk/Lib/test/test_py3kwarn.py	Thu May 15 05:41:55 2008
@@ -134,7 +134,8 @@
     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',

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Thu May 15 05:41:55 2008
@@ -32,6 +32,8 @@
 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 imgfile module from IRIX has been deprecated for removal in Python 3.0.


More information about the Python-checkins mailing list