From 7e37586c50d67805b02475b656f5ad083d4bc168 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 15 May 2008 03:46:27 +0000 Subject: The panel module for IRIX has been deprecated for removal in 3.0. --- Lib/plat-irix5/panel.py | 3 +++ Lib/plat-irix6/panel.py | 3 +++ Lib/test/test_py3kwarn.py | 2 +- Misc/NEWS | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Lib/plat-irix5/panel.py b/Lib/plat-irix5/panel.py index 12e62a5..fcfa56b 100755 --- a/Lib/plat-irix5/panel.py +++ b/Lib/plat-irix5/panel.py @@ -6,6 +6,9 @@ # most 'pnl' functions are transparently exported by 'panel', # but dopanel() is overridden and you have to use this version # if you want to use callbacks. +from warnings import warnpy3k +warnpy3k("the panel module has been removed in Python 3.0", stacklevel=2) +del warnpy3k import pnl diff --git a/Lib/plat-irix6/panel.py b/Lib/plat-irix6/panel.py index 12e62a5..fcfa56b 100644 --- a/Lib/plat-irix6/panel.py +++ b/Lib/plat-irix6/panel.py @@ -6,6 +6,9 @@ # most 'pnl' functions are transparently exported by 'panel', # but dopanel() is overridden and you have to use this version # if you want to use callbacks. +from warnings import warnpy3k +warnpy3k("the panel module has been removed in Python 3.0", stacklevel=2) +del warnpy3k import pnl diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 84e03ec..7d5e0a0 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -135,7 +135,7 @@ class TestStdlibRemovals(unittest.TestCase): 'cdplayer', 'CL', 'cl', 'DEVICE', 'GL', 'gl', 'ERRNO', 'FILE', 'FL', 'flp', 'fl', 'fm', 'GET', 'GLWS', 'imgfile', 'IN', - 'IOCTL', 'jpeg'), + 'IOCTL', 'jpeg', 'panel'), 'darwin' : ('autoGIL', 'Carbon', 'OSATerminology', 'icglue', 'Nav', 'MacOS', 'aepack', 'aetools', 'aetypes', 'applesingle', diff --git a/Misc/NEWS b/Misc/NEWS index 1e7fe91..2c54fdc 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -32,6 +32,8 @@ Extension Modules Library ------- +-The panel module from IRIX has been deprecate for removal in Python 3.0. + - The jpeg module from IRIX has been deprecated for removal in Python 3.0. - The IOCTL module from IRIX has been deprecated for removal in Python 3.0. -- cgit v0.12