diff --git a/Lib/plat-irix5/IN.py b/Lib/plat-irix5/IN.py index 2d6789201b0..8f5817676fc 100755 --- a/Lib/plat-irix5/IN.py +++ b/Lib/plat-irix5/IN.py @@ -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 diff --git a/Lib/plat-irix6/IN.py b/Lib/plat-irix6/IN.py index 9385bb0e0d7..8d140a710ac 100644 --- a/Lib/plat-irix6/IN.py +++ b/Lib/plat-irix6/IN.py @@ -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 diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 1d0c37fad7a..9964ad5993b 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -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', diff --git a/Misc/NEWS b/Misc/NEWS index 0339353c4c2..000b9a09b6f 100644 --- 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.