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

index 2d6789201b062ca064aa2359432febe04bc3eb4c..8f5817676fcfc700208bf4b1fdc02ef76f78d7b4 100755 (executable)
@@ -1,4 +1,7 @@
 # Generated by h2py from /usr/include/netinet/in.h
+from warnings import warnpy3k
+warnpy3k("the IN module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
 
 # Included from sys/endian.h
 LITTLE_ENDIAN = 1234
index 9385bb0e0d799da241a4feef326881eb56fd5f4b..8d140a710ac628ba869d38fbb160e852a8149ad7 100644 (file)
@@ -1,4 +1,7 @@
 # Generated by h2py from /usr/include/netinet/in.h
+from warnings import warnpy3k
+warnpy3k("the IN module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
 
 # Included from standards.h
 
index 1d0c37fad7a1e5b0cf0562f40e56f77db5682eea..9964ad5993b551f17edeb7cb9c9850c28502cf6c 100644 (file)
@@ -134,7 +134,7 @@ 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'),
+                                     'fm', 'GET', 'GLWS', 'imgfile', 'IN'),
                           'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
                                       'icglue', 'Nav', 'MacOS', 'aepack',
                                       'aetools', 'aetypes', 'applesingle',
index 0339353c4c28d68b5a82478956056a48a54f02a7..000b9a09b6f8c796fdee21c46a7bcaf23f3e840b 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -32,6 +32,8 @@ Extension Modules
 Library
 -------
 
+- 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 GLWS module from IRIX has been deprecated for removal in Python 3.0.