summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-15 03:27:12 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-15 03:27:12 (GMT)
commit82bd94e6510aed32d022267a56f398f926eb0907 (patch)
tree38188f7834db04fa148be8584bcf389f94a86b56 /Lib
parent75ba46509904cadf653d40c15da3b647a313a5b1 (diff)
downloadcpython-82bd94e6510aed32d022267a56f398f926eb0907.zip
cpython-82bd94e6510aed32d022267a56f398f926eb0907.tar.gz
cpython-82bd94e6510aed32d022267a56f398f926eb0907.tar.bz2
Deprecate GET from IRIX for removal in 3.0.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/plat-irix5/GET.py3
-rw-r--r--Lib/plat-irix6/GET.py3
-rw-r--r--Lib/test/test_py3kwarn.py2
3 files changed, 7 insertions, 1 deletions
diff --git a/Lib/plat-irix5/GET.py b/Lib/plat-irix5/GET.py
index 9c3d7d6..842a3aa 100755
--- a/Lib/plat-irix5/GET.py
+++ b/Lib/plat-irix5/GET.py
@@ -1,4 +1,7 @@
# Symbols from <gl/get.h>
+from warnings import warnpy3k
+warnpy3k("the GET module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
BCKBUFFER = 0x1
FRNTBUFFER = 0x2
diff --git a/Lib/plat-irix6/GET.py b/Lib/plat-irix6/GET.py
index 9c3d7d6..842a3aa 100644
--- a/Lib/plat-irix6/GET.py
+++ b/Lib/plat-irix6/GET.py
@@ -1,4 +1,7 @@
# Symbols from <gl/get.h>
+from warnings import warnpy3k
+warnpy3k("the GET module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
BCKBUFFER = 0x1
FRNTBUFFER = 0x2
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py
index 54b54f1..bc4a7a7 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'),
+ 'fm', 'GET'),
'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
'icglue', 'Nav', 'MacOS', 'aepack',
'aetools', 'aetypes', 'applesingle',