summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-15 03:17:24 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-15 03:17:24 (GMT)
commit72ccc40db5e595a7e643f1966f6ee674c5d81551 (patch)
tree3b25cddd7448cdb69d5dc29b2e1317350777ddd8 /Lib
parent2773b6f1c911e782bf1ed3ebd62b2e9ae6e53c70 (diff)
downloadcpython-72ccc40db5e595a7e643f1966f6ee674c5d81551.zip
cpython-72ccc40db5e595a7e643f1966f6ee674c5d81551.tar.gz
cpython-72ccc40db5e595a7e643f1966f6ee674c5d81551.tar.bz2
FILE from IRIX has been deprecated for removal in 3.0.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/plat-irix5/FILE.py3
-rw-r--r--Lib/plat-irix6/FILE.py3
-rw-r--r--Lib/test/test_py3kwarn.py2
3 files changed, 7 insertions, 1 deletions
diff --git a/Lib/plat-irix5/FILE.py b/Lib/plat-irix5/FILE.py
index 05697c1..adf0da3 100755
--- a/Lib/plat-irix5/FILE.py
+++ b/Lib/plat-irix5/FILE.py
@@ -1,4 +1,7 @@
# Generated by h2py from /usr/include/sys/file.h
+from warnings import warnpy3k
+warnpy3k("the FILE module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
# Included from sys/types.h
diff --git a/Lib/plat-irix6/FILE.py b/Lib/plat-irix6/FILE.py
index ab74d7c..3376c71 100644
--- a/Lib/plat-irix6/FILE.py
+++ b/Lib/plat-irix6/FILE.py
@@ -1,4 +1,7 @@
# Generated by h2py from /usr/include/sys/file.h
+from warnings import warnpy3k
+warnpy3k("the FILE 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 c49f75d..8c84a11 100644
--- a/Lib/test/test_py3kwarn.py
+++ b/Lib/test/test_py3kwarn.py
@@ -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', 'ERRNO'),
+ 'gl', 'ERRNO', 'FILE'),
'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
'icglue', 'Nav', 'MacOS', 'aepack',
'aetools', 'aetypes', 'applesingle',