diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-15 03:36:13 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-15 03:36:13 (GMT) |
commit | 6328b297dc9155f2a9e9ae535580dd685dcc24e0 (patch) | |
tree | e4541d4bd7275f4664eabbf92641bfe15f2ccdb0 /Lib | |
parent | 4652537ba4433e96a485c5ac9b855786c4a5eb04 (diff) | |
download | cpython-6328b297dc9155f2a9e9ae535580dd685dcc24e0.zip cpython-6328b297dc9155f2a9e9ae535580dd685dcc24e0.tar.gz cpython-6328b297dc9155f2a9e9ae535580dd685dcc24e0.tar.bz2 |
Deprecate IN from IRIX for removal in 3.0.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/plat-irix5/IN.py | 3 | ||||
-rw-r--r-- | Lib/plat-irix6/IN.py | 3 | ||||
-rw-r--r-- | Lib/test/test_py3kwarn.py | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/Lib/plat-irix5/IN.py b/Lib/plat-irix5/IN.py index 2d67892..8f58176 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 9385bb0..8d140a7 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 1d0c37f..9964ad5 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', |