From 82bd94e6510aed32d022267a56f398f926eb0907 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 15 May 2008 03:27:12 +0000 Subject: [PATCH] Deprecate GET from IRIX for removal in 3.0. --- Lib/plat-irix5/GET.py | 3 +++ Lib/plat-irix6/GET.py | 3 +++ Lib/test/test_py3kwarn.py | 2 +- Misc/NEWS | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Lib/plat-irix5/GET.py b/Lib/plat-irix5/GET.py index 9c3d7d6952..842a3aa9a1 100755 --- a/Lib/plat-irix5/GET.py +++ b/Lib/plat-irix5/GET.py @@ -1,4 +1,7 @@ # Symbols from +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 9c3d7d6952..842a3aa9a1 100644 --- a/Lib/plat-irix6/GET.py +++ b/Lib/plat-irix6/GET.py @@ -1,4 +1,7 @@ # Symbols from +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 54b54f13af..bc4a7a76c2 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', diff --git a/Misc/NEWS b/Misc/NEWS index cfa3c3a9dd..a1d6365487 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -32,6 +32,8 @@ Extension Modules Library ------- +- The GET module from IRIX has been deprecate for removal in Python 3.0. + - The fm module from IRIX has been deprecated for removal in Python 3.0. - The FL, flp, and fl modules from IRIX have been deprecated for removal in -- 2.40.0