]> granicus.if.org Git - python/commitdiff
Deprecate ERRNO for removal in 3.0.
authorBrett Cannon <bcannon@gmail.com>
Thu, 15 May 2008 03:14:57 +0000 (03:14 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 15 May 2008 03:14:57 +0000 (03:14 +0000)
Lib/plat-irix5/ERRNO.py
Lib/plat-irix6/ERRNO.py
Lib/test/test_py3kwarn.py
Misc/NEWS

index d49e9641e45547e9753565098f77c54f7857bff3..d9ab7a4a9673f41b89fc245134d30e7df3d19ccd 100755 (executable)
@@ -1,4 +1,7 @@
 # Generated by h2py from /usr/include/errno.h
+from warnings import warnpy3k
+warnpy3k("the ERRNO module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
 
 # Included from sys/errno.h
 __KBASE = 1000
index 1836fa04ef165882b7cd2d3b62c3a844af3a9556..ec8720a5335c163f11f2e012ff15adff80d09f8e 100644 (file)
@@ -1,4 +1,7 @@
 # Generated by h2py from /usr/include/errno.h
+from warnings import warnpy3k
+warnpy3k("the ERRNO module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
 
 # Included from sys/errno.h
 
index 4a08c51df3c607a6de14d1e7ad5fa9d1b261a1ef..c49f75d7ab1b76d7dbe30a1a58872f62d83d1bd3 100644 (file)
@@ -133,7 +133,7 @@ class TestStdlibRemovals(unittest.TestCase):
                         'ihooks', 'mhlib')
     inclusive_platforms = {'irix' : ('pure', 'AL', 'al', 'CD', 'cd', 'cddb',
                                      'cdplayer', 'CL', 'cl', 'DEVICE', 'GL',
-                                     'gl'),
+                                     'gl', 'ERRNO'),
                           'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
                                       'icglue', 'Nav', 'MacOS', 'aepack',
                                       'aetools', 'aetypes', 'applesingle',
index 1ff52841986d84fdf18a7b8aa2dbe8760a5325c3..a693dcacd5edb22c23537413cc528b440d35573a 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -32,6 +32,8 @@ Extension Modules
 Library
 -------
 
+- The ERRNO module on IRIX has been deprecated for removal in Python 3.0.
+
 - The DEVICE, GL, gl, and cgen modules (which indirectly includes cgensupport)
   have been deprecated for removal in Python 3.0.