]> granicus.if.org Git - python/commitdiff
The panel module for IRIX has been deprecated for removal in 3.0.
authorBrett Cannon <bcannon@gmail.com>
Thu, 15 May 2008 03:46:27 +0000 (03:46 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 15 May 2008 03:46:27 +0000 (03:46 +0000)
Lib/plat-irix5/panel.py
Lib/plat-irix6/panel.py
Lib/test/test_py3kwarn.py
Misc/NEWS

index 12e62a51b4a4daa1aa3b9b252702f631839448a1..fcfa56b54d9a8882273fcf093bf4a8889910dc49 100755 (executable)
@@ -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
index 12e62a51b4a4daa1aa3b9b252702f631839448a1..fcfa56b54d9a8882273fcf093bf4a8889910dc49 100644 (file)
@@ -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
index 84e03ecf2911777ddee883a0b9107a2068c2e215..7d5e0a0e8d6b2dd489f744d068408040614c1dd6 100644 (file)
@@ -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',
index 1e7fe91117720b89d40268cbcc96055f530a1ee2..2c54fdcce63b285352a475a551e525a8f62e8a78 100644 (file)
--- 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.